summaryrefslogtreecommitdiff
path: root/js/src/vm
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-02-13 09:41:29 +0000
committerMoonchild <moonchild@palemoon.org>2021-02-13 09:41:29 +0000
commitfc65e1f2fa4239c6271d666b3366cdf7cf440580 (patch)
tree053640b398b85d267fe010fe1249c563010cc562 /js/src/vm
parent458939c9d94049596ca6148b7b0014d5e7db36f8 (diff)
downloaduxp-fc65e1f2fa4239c6271d666b3366cdf7cf440580.tar.gz
Issue #1739 - Implement numeric separators.
Resolves #1739
Diffstat (limited to 'js/src/vm')
-rw-r--r--js/src/vm/JSONParser.cpp4
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);
}