Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Nov 19, 2024
1 parent 316669d commit 9d02cf9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/runtime/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,11 @@ pub extern "C" fn host_initialize_import_meta_object_callback(
if module_type == ModuleType::Wasm {
let wasm_instance_key = WASM_INSTANCE.v8_string(scope);
if let Some(f) = state.wasm_instance_fn.borrow().as_ref() {
let wasm_instantiate_val = v8::Local::new(scope, &**f);
let wasm_instance_val = v8::Local::new(scope, &**f);
meta.create_data_property(
scope,
wasm_instance_key.into(),
wasm_instantiate_val.into(),
wasm_instance_val.into(),
);
} else {
let message = v8::String::new(
Expand Down
2 changes: 1 addition & 1 deletion core/runtime/jsruntime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ impl JsRuntime {
wasm_instance_fn = Some(bindings::get::<v8::Local<v8::Function>>(
scope,
web_assembly_object,
INSTANTIATE,
INSTANCE,
"WebAssembly.Instance",
));
}
Expand Down
2 changes: 1 addition & 1 deletion core/runtime/v8_static_strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ v8_static_strings!(
ERRORS = "errors",
EVENT_LOOP_TICK = "eventLoopTick",
FILENAME = "filename",
INSTANTIATE = "instantiate",
INSTANCE = "Instance",
MAIN = "main",
MESSAGE = "message",
NAME = "name",
Expand Down

0 comments on commit 9d02cf9

Please sign in to comment.