diff options
-rw-r--r-- | src/mongo/scripting/mozjs/numberdecimal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/numberdecimal.cpp b/src/mongo/scripting/mozjs/numberdecimal.cpp index a845b3bb99d..e5243eb6c8e 100644 --- a/src/mongo/scripting/mozjs/numberdecimal.cpp +++ b/src/mongo/scripting/mozjs/numberdecimal.cpp @@ -101,7 +101,7 @@ void NumberDecimalInfo::construct(JSContext* cx, JS::CallArgs args) { void NumberDecimalInfo::make(JSContext* cx, JS::MutableHandleValue thisv, Decimal128 decimal) { auto scope = getScope(cx); - scope->getProto<NumberDecimalInfo>().newInstance(thisv); + scope->getProto<NumberDecimalInfo>().newObject(thisv); JS_SetPrivate(thisv.toObjectOrNull(), new Decimal128(decimal)); } |