diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-03-10 15:16:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 15:16:43 -0500 |
commit | 2f9d7c02dc87cfc57a6d37dc27bb0680b9ac7128 (patch) | |
tree | 243fea304edd8eadaa04e64347efa89c0cf74a79 /core | |
parent | 3ab48864fe4f1122d766aceefd4882c4cc526451 (diff) |
upgrade: rusty_v8 0.21.0 (#9725)
Diffstat (limited to 'core')
-rw-r--r-- | core/Cargo.toml | 2 | ||||
-rw-r--r-- | core/runtime.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/Cargo.toml b/core/Cargo.toml index 9d068515e..1b1c8d0d3 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -21,7 +21,7 @@ lazy_static = "1.4.0" libc = "0.2.86" log = "0.4.14" pin-project = "1.0.5" -rusty_v8 = "0.20.0" +rusty_v8 = "0.21.0" serde = { version = "1.0.123", features = ["derive"] } serde_json = { version = "1.0.62", features = ["preserve_order"] } smallvec = "1.6.1" diff --git a/core/runtime.rs b/core/runtime.rs index 109732f0a..f6d0ab5a6 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -683,7 +683,7 @@ impl JsRuntime { let source_str = v8::String::new(scope, source).unwrap(); let origin = bindings::module_origin(scope, name_str); - let source = v8::script_compiler::Source::new(source_str, &origin); + let source = v8::script_compiler::Source::new(source_str, Some(&origin)); let tc_scope = &mut v8::TryCatch::new(scope); |