[JSC] Implement optimized WeakMap and WeakSet
[WebKit-https.git] / Source / JavaScriptCore / runtime / WeakSetConstructor.cpp
index 40d9cc5..840cb51 100644 (file)
@@ -68,7 +68,7 @@ static EncodedJSValue JSC_HOST_CALL constructWeakSet(ExecState* exec)
     JSGlobalObject* globalObject = asInternalFunction(exec->jsCallee())->globalObject();
     Structure* weakSetStructure = InternalFunction::createSubclassStructure(exec, exec->newTarget(), globalObject->weakSetStructure());
     RETURN_IF_EXCEPTION(scope, encodedJSValue());
-    JSWeakSet* weakSet = JSWeakSet::create(exec, weakSetStructure);
+    JSWeakSet* weakSet = JSWeakSet::create(vm, weakSetStructure);
     JSValue iterable = exec->argument(0);
     if (iterable.isUndefinedOrNull())
         return JSValue::encode(weakSet);