Skip to content

Commit 92f02c0

Browse files
authored
Fix initialization of NotCloneable VMs. (#63)
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 49ed20e commit 92f02c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wasm.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,8 @@ createThreadLocalWasm(std::shared_ptr<WasmHandleBase> &base_wasm,
512512
wasm_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm");
513513
return nullptr;
514514
}
515-
if (!wasm_handle->wasm()->initialize(wasm_handle->wasm()->code(),
516-
wasm_handle->wasm()->allow_precompiled())) {
515+
if (!wasm_handle->wasm()->initialize(base_wasm->wasm()->code(),
516+
base_wasm->wasm()->allow_precompiled())) {
517517
wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code");
518518
return nullptr;
519519
}

0 commit comments

Comments
 (0)