summaryrefslogtreecommitdiff
path: root/js/src/vm/StringBuffer.cpp
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-07-13 02:40:25 -0500
committerBrian Smith <brian@dbsoft.org>2023-07-13 02:40:25 -0500
commitb2ae4d388529c1a63959cc169f3ec1f7fdce9558 (patch)
tree83f80a93cb61d769c05e41e3ec59045fa2659f41 /js/src/vm/StringBuffer.cpp
parenteb7a856c766a508cde0a9ad90a233b272c7a9e54 (diff)
downloaduxp-b2ae4d388529c1a63959cc169f3ec1f7fdce9558.tar.gz
Issue #1240 - Part 2 - Define the BigIntObject class for BigInt wrapper objects.
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1366287 Part 3. In our Part 3 we will fast forward to the V8 implementation skipping GMP.
Diffstat (limited to 'js/src/vm/StringBuffer.cpp')
-rw-r--r--js/src/vm/StringBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/StringBuffer.cpp b/js/src/vm/StringBuffer.cpp
index 38f1e74e71..58a3c3e164 100644
--- a/js/src/vm/StringBuffer.cpp
+++ b/js/src/vm/StringBuffer.cpp
@@ -171,7 +171,7 @@ js::ValueToStringBufferSlow(JSContext* cx, const Value& arg, StringBuffer& sb)
return false;
}
if (v.isBigInt()) {
- JSString* str = BigInt::toString(cx, v.toBigInt());
+ JSLinearString* str = BigInt::toString(cx, v.toBigInt(), 10);
if (!str)
return false;
return sb.append(str);