Skip to content

Commit

Permalink
wavm: set context when calling __GLOBAL__ functions. (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
PiotrSikora authored May 21, 2019
1 parent 1919461 commit a63eb40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/extensions/common/wasm/wavm/wavm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ void Wavm::start(Context* context) {
}

if (emscriptenInstance_) {
Emscripten::initializeGlobals(emscriptenInstance_, context_, irModule_, moduleInstance_);
CALL_WITH_CONTEXT(
Emscripten::initializeGlobals(emscriptenInstance_, context_, irModule_, moduleInstance_),
context);
}

f = asFunctionNullable(getInstanceExport(moduleInstance_, "__post_instantiate"));
Expand Down

0 comments on commit a63eb40

Please sign in to comment.