| Index: src/asmjs/asm-js.cc
|
| diff --git a/src/asmjs/asm-js.cc b/src/asmjs/asm-js.cc
|
| index c38c0537358b1f5f38606c05af9efcc568fedb2a..5618de4c0a1b7b41a72293f4f334789e6646abf7 100644
|
| --- a/src/asmjs/asm-js.cc
|
| +++ b/src/asmjs/asm-js.cc
|
| @@ -172,11 +172,13 @@ MaybeHandle<Object> AsmJs::InstantiateAsmWasm(i::Isolate* isolate,
|
| i::Handle<i::FixedArray> compiled(i::FixedArray::cast(wasm_data->get(0)));
|
| i::Handle<i::FixedArray> foreign_globals(
|
| i::FixedArray::cast(wasm_data->get(1)));
|
| + i::Handle<i::Context> context(isolate->context());
|
|
|
| ErrorThrower thrower(isolate, "Asm.js -> WebAssembly instantiation");
|
|
|
| i::MaybeHandle<i::JSObject> maybe_module_object =
|
| - i::wasm::WasmModule::Instantiate(isolate, compiled, foreign, memory);
|
| + i::wasm::WasmModule::Instantiate(isolate, context, compiled, foreign,
|
| + memory);
|
| if (maybe_module_object.is_null()) {
|
| return MaybeHandle<Object>();
|
| }
|
|
|