From 4853c6d17f40d86b137105744708be424fa218e0 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sun, 6 Dec 2015 13:23:14 +0100 Subject: [PATCH] Set script identifier as String, not Symbol Otherwise long module identifiers might get cut off. --- v8js_methods.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v8js_methods.cc b/v8js_methods.cc index afa0cd8..4395559 100644 --- a/v8js_methods.cc +++ b/v8js_methods.cc @@ -347,7 +347,7 @@ V8JS_METHOD(require) // Enter the module context v8::Context::Scope scope(context); // Set script identifier - v8::Local sname = V8JS_SYM(normalised_module_id); + v8::Local sname = V8JS_STR(normalised_module_id); v8::Local source = V8JS_STRL(Z_STRVAL_P(module_code), Z_STRLEN_P(module_code)); zval_ptr_dtor(&module_code);