We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c391bf3 commit a9c0c47Copy full SHA for a9c0c47
src/wasm.cc
@@ -254,7 +254,11 @@ void WasmBase::getFunctions() {
254
}
255
256
257
-WasmBase::WasmBase(const std::shared_ptr<WasmHandle> &base_wasm_handle, WasmVmFactory factory) {
+WasmBase::WasmBase(const std::shared_ptr<WasmHandle> &base_wasm_handle, WasmVmFactory factory)
258
+ : std::enable_shared_from_this<WasmBase>(*base_wasm_handle->wasm()),
259
+ vm_id_(base_wasm_handle->wasm()->vm_id_), vm_key_(base_wasm_handle->wasm()->vm_key_),
260
+ started_from_(base_wasm_handle->wasm()->wasm_vm()->cloneable()),
261
+ base_wasm_handle_(base_wasm_handle) {
262
if (started_from_ != Cloneable::NotCloneable) {
263
wasm_vm_ = base_wasm_handle->wasm()->wasm_vm()->clone();
264
} else {
0 commit comments