summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-08-15 14:12:11 +0200
committerGitHub <noreply@github.com>2022-08-15 14:12:11 +0200
commit5a4f84a0e1a514c0e6040116953717051b44c168 (patch)
tree6cdbaa14f14963cb8567a56570bd6e299a35571e /core/runtime.rs
parent18dcc64910e6dd5f26f3828a07f2ff0845dfaa4b (diff)
chore: upgrade rusty_v8 to 0.48.1 (#15310)
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index 541aa7c02..7f113223f 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -227,11 +227,6 @@ fn v8_init(
static ICU_DATA: IcuData = IcuData(*include_bytes!("icudtl.dat"));
v8::icu::set_common_data_71(&ICU_DATA.0).unwrap();
- let v8_platform = v8_platform
- .unwrap_or_else(|| v8::new_default_platform(0, false).make_shared());
- v8::V8::initialize_platform(v8_platform);
- v8::V8::initialize();
-
let flags = concat!(
" --experimental-wasm-threads",
" --wasm-test-streaming",
@@ -248,6 +243,11 @@ fn v8_init(
} else {
v8::V8::set_flags_from_string(flags);
}
+
+ let v8_platform = v8_platform
+ .unwrap_or_else(|| v8::new_default_platform(0, false).make_shared());
+ v8::V8::initialize_platform(v8_platform);
+ v8::V8::initialize();
}
#[derive(Default)]
@@ -516,6 +516,9 @@ impl JsRuntime {
isolate.set_host_import_module_dynamically_callback(
bindings::host_import_module_dynamically_callback,
);
+ isolate.set_wasm_async_resolve_promise_callback(
+ bindings::wasm_async_resolve_promise_callback,
+ );
isolate
}