Skip to content

Commit

Permalink
upgrade: rusty_v8 0.21.0 (#9725)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry authored Mar 10, 2021
1 parent 3ab4886 commit 2f9d7c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion core/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2f9d7c0

Please sign in to comment.