Index: src/wasm/wasm-objects.cc |
diff --git a/src/wasm/wasm-objects.cc b/src/wasm/wasm-objects.cc |
index 0b8c8e970b4311fea5a546622fe51ecdd25c6d6b..432eef9932d80d98b19ea4fec4ab7b58affcad31 100644 |
--- a/src/wasm/wasm-objects.cc |
+++ b/src/wasm/wasm-objects.cc |
@@ -580,7 +580,7 @@ Handle<WasmSharedModuleData> WasmSharedModuleData::New( |
bool WasmSharedModuleData::is_asm_js() { |
bool asm_js = module()->origin == wasm::ModuleOrigin::kAsmJsOrigin; |
- DCHECK_EQ(asm_js, script()->type() == Script::TYPE_NORMAL); |
+ DCHECK_EQ(asm_js, script()->IsUserJavaScript()); |
DCHECK_EQ(asm_js, has_asm_js_offset_table()); |
return asm_js; |
} |