Skip to content

Commit a9c0c47

Browse files
authored
Add missing constructor values. (proxy-wasm#4)
Signed-off-by: John Plevyak <[email protected]>
1 parent c391bf3 commit a9c0c47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/wasm.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,11 @@ void WasmBase::getFunctions() {
254254
}
255255
}
256256

257-
WasmBase::WasmBase(const std::shared_ptr<WasmHandle> &base_wasm_handle, WasmVmFactory factory) {
257+
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) {
258262
if (started_from_ != Cloneable::NotCloneable) {
259263
wasm_vm_ = base_wasm_handle->wasm()->wasm_vm()->clone();
260264
} else {

0 commit comments

Comments
 (0)