Skip to content

Commit

Permalink
Merge pull request #545 from Sharktheone/deps/upgrade-v8
Browse files Browse the repository at this point in the history
upgrade v8 & fix compile error
  • Loading branch information
Sharktheone committed Aug 13, 2024
2 parents bbf7119 + ba2d310 commit 9cf4f4d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
5 changes: 2 additions & 3 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 crates/gosub_v8/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ license = "MIT"
gosub_shared = { path = "../gosub_shared" }
gosub_webexecutor = { path = "../gosub_webexecutor" }
thiserror = "1.0.61"
v8 = "0.98.0"
v8 = "0.102.0"
anyhow = "1.0.86"
serde_json = "1.0.122"
5 changes: 4 additions & 1 deletion crates/gosub_v8/src/v8/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ impl<'a> V8Ctx<'a> {

v8_ctx.handle_scope = handle_scope;

let ctx = v8::Context::new(unsafe { v8_ctx.handle_scope.as_mut() }.get());
let ctx = v8::Context::new(
unsafe { v8_ctx.handle_scope.as_mut() }.get(),
Default::default(),
);

let ctx_scope = Box::new(ContextScope::new(
unsafe { v8_ctx.handle_scope.as_mut() }.get(),
Expand Down
2 changes: 1 addition & 1 deletion crates/gosub_v8/src/v8/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ impl<'a> JSObject for V8Object<'a> {
_name: Local<Name>,
value: Local<Value>,
args: PropertyCallbackArguments,
_rv: ReturnValue| {
_rv: ReturnValue<()>| {
let external = match Local::<External>::try_from(args.data()) {
Ok(external) => external,
Err(e) => {
Expand Down
1 change: 0 additions & 1 deletion crates/gosub_webexecutor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ colored = "2.1.0"
derive_more = "0.99"
lazy_static = "1.5"
thiserror = "1.0.61"
v8 = "0.98.0"
anyhow = "1.0.86"
paste = "1.0.15"

Expand Down

0 comments on commit 9cf4f4d

Please sign in to comment.