mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 10:21:51 +00:00
Set script identifier as String, not Symbol
Otherwise long module identifiers might get cut off.
This commit is contained in:
parent
bf58fe67c1
commit
4853c6d17f
@ -347,7 +347,7 @@ V8JS_METHOD(require)
|
|||||||
// Enter the module context
|
// Enter the module context
|
||||||
v8::Context::Scope scope(context);
|
v8::Context::Scope scope(context);
|
||||||
// Set script identifier
|
// Set script identifier
|
||||||
v8::Local<v8::String> sname = V8JS_SYM(normalised_module_id);
|
v8::Local<v8::String> sname = V8JS_STR(normalised_module_id);
|
||||||
|
|
||||||
v8::Local<v8::String> source = V8JS_STRL(Z_STRVAL_P(module_code), Z_STRLEN_P(module_code));
|
v8::Local<v8::String> source = V8JS_STRL(Z_STRVAL_P(module_code), Z_STRLEN_P(module_code));
|
||||||
zval_ptr_dtor(&module_code);
|
zval_ptr_dtor(&module_code);
|
||||||
|
Loading…
Reference in New Issue
Block a user