Pass VM instead of JSGlobalObject to RegExp constructor.
[WebKit-https.git] / Source / JavaScriptCore / jit / JITStubs.cpp
index dea6a4704bc5ca7dcacaa5747fac1308e8bce928..eefdc66a0fe4b673f760dcfab5fa77a8272cde73 100644 (file)
@@ -1948,7 +1948,7 @@ DEFINE_STUB_FUNCTION(JSObject*, op_new_regexp)
         VM_THROW_EXCEPTION();
     }
 
         VM_THROW_EXCEPTION();
     }
 
-    return RegExpObject::create(*stackFrame.vm, stackFrame.callFrame->lexicalGlobalObject(), stackFrame.callFrame->lexicalGlobalObject()->regExpStructure(), regExp);
+    return RegExpObject::create(*stackFrame.vm, stackFrame.callFrame->lexicalGlobalObject()->regExpStructure(), regExp);
 }
 
 DEFINE_STUB_FUNCTION(EncodedJSValue, op_call_eval)
 }
 
 DEFINE_STUB_FUNCTION(EncodedJSValue, op_call_eval)