mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 08:11:52 +00:00
use isolate version of v8::ScriptOrigin
This commit is contained in:
parent
acd9431ec9
commit
4c026f3fb2
@ -636,7 +636,7 @@ static void v8js_compile_script(zval *this_ptr, const zend_string *str, const ze
|
||||
v8::Local<v8::String> 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<int>::max()) {
|
||||
zend_throw_exception(php_ce_v8js_exception,
|
||||
|
@ -516,7 +516,7 @@ V8JS_METHOD(require)
|
||||
|
||||
// Set script identifier
|
||||
v8::Local<v8::String> sname = V8JS_STR(normalised_module_id);
|
||||
v8::ScriptOrigin origin(sname);
|
||||
v8::ScriptOrigin origin(isolate, sname);
|
||||
|
||||
if (Z_STRLEN(module_code) > std::numeric_limits<int>::max()) {
|
||||
zend_throw_exception(php_ce_v8js_exception,
|
||||
|
Loading…
Reference in New Issue
Block a user