Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 30c545ec515bb07c2459b52b11dc25d3e1fcedd9..f825e7a4d29c2634e5a61f7f638b2c4948bc5c0d 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -2197,11 +2197,11 @@ Node* WasmGraphBuilder::ToJS(Node* node, wasm::LocalType type) { |
case wasm::kAstI32: |
return BuildChangeInt32ToTagged(node); |
case wasm::kAstI64: |
- DCHECK(module_ && !module_->instance->context.is_null()); |
- // Throw a TypeError. |
+ // Throw a TypeError. The native context is good enough here because we |
+ // only throw a TypeError. |
return BuildCallToRuntime(Runtime::kWasmThrowTypeError, jsgraph(), |
- module_->instance->context, nullptr, 0, effect_, |
- *control_); |
+ jsgraph()->isolate()->native_context(), nullptr, |
+ 0, effect_, *control_); |
case wasm::kAstF32: |
node = graph()->NewNode(jsgraph()->machine()->ChangeFloat32ToFloat64(), |
node); |