diff options
Diffstat (limited to 'js/src/jsobj.cpp')
-rw-r--r-- | js/src/jsobj.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index 75d45e76d5..d0f9430bc8 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -35,6 +35,7 @@ #include "jswin.h" #include "jswrapper.h" +#include "builtin/BigInt.h" #include "builtin/Eval.h" #include "builtin/Object.h" #include "builtin/SymbolObject.h" @@ -3110,8 +3111,7 @@ js::PrimitiveToObject(JSContext* cx, const Value& v) } MOZ_ASSERT(v.isBigInt()); RootedBigInt bigInt(cx, v.toBigInt()); - // Return nullptr because BigIntObject has not been defined yet. - return nullptr; + return BigIntObject::create(cx, bigInt); } /* |