diff --git a/v8js_class.cc b/v8js_class.cc index 4e9be67..b8af58b 100644 --- a/v8js_class.cc +++ b/v8js_class.cc @@ -636,7 +636,7 @@ static void v8js_compile_script(zval *this_ptr, const zend_string *str, const ze v8::Local sname = identifier ? V8JS_ZSTR(identifier) : V8JS_SYM("V8Js::compileString()"); - v8::ScriptOrigin origin(sname); + v8::ScriptOrigin origin(isolate, sname); if (ZSTR_LEN(str) > std::numeric_limits::max()) { zend_throw_exception(php_ce_v8js_exception, diff --git a/v8js_methods.cc b/v8js_methods.cc index 7f7f926..7ddfcf8 100644 --- a/v8js_methods.cc +++ b/v8js_methods.cc @@ -516,7 +516,7 @@ V8JS_METHOD(require) // Set script identifier v8::Local sname = V8JS_STR(normalised_module_id); - v8::ScriptOrigin origin(sname); + v8::ScriptOrigin origin(isolate, sname); if (Z_STRLEN(module_code) > std::numeric_limits::max()) { zend_throw_exception(php_ce_v8js_exception,