diff options
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r-- | ext/node/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs index f3bdb7e5b..7bf721f0a 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -447,7 +447,7 @@ pub fn initialize_runtime( argv0 ); - js_runtime.execute_script(located_script_name!(), source_code)?; + js_runtime.execute_script(located_script_name!(), source_code.into())?; Ok(()) } @@ -468,7 +468,8 @@ pub fn load_cjs_module( main = main, module = escape_for_single_quote_string(module), inspect_brk = inspect_brk, - ); + ) + .into(); js_runtime.execute_script(located_script_name!(), source_code)?; Ok(()) |