diff options
author | Moonchild <moonchild@palemoon.org> | 2021-02-13 09:41:29 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-02-13 09:41:29 +0000 |
commit | fc65e1f2fa4239c6271d666b3366cdf7cf440580 (patch) | |
tree | 053640b398b85d267fe010fe1249c563010cc562 /js/src/vm | |
parent | 458939c9d94049596ca6148b7b0014d5e7db36f8 (diff) | |
download | uxp-fc65e1f2fa4239c6271d666b3366cdf7cf440580.tar.gz |
Issue #1739 - Implement numeric separators.
Resolves #1739
Diffstat (limited to 'js/src/vm')
-rw-r--r-- | js/src/vm/JSONParser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/vm/JSONParser.cpp b/js/src/vm/JSONParser.cpp index 975fecb562..680a34fef0 100644 --- a/js/src/vm/JSONParser.cpp +++ b/js/src/vm/JSONParser.cpp @@ -288,8 +288,10 @@ JSONParser<CharT>::readNumber() double d; const CharT* dummy; - if (!GetPrefixInteger(cx, digitStart.get(), current.get(), 10, &dummy, &d)) + if (!GetPrefixInteger(cx, digitStart.get(), current.get(), 10, + PrefixIntegerSeparatorHandling::None, &dummy, &d)) { return token(OOM); + } MOZ_ASSERT(current == dummy); return numberToken(negative ? -d : d); } |