Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index 2019b40d2280097ebf6f3896a4dc343de80c16fd..f0555282b94c967dd96e682a2a6c3ea7d242aef0 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -739,7 +739,7 @@ Handle<Object> AsmJsWasmStackFrame::GetFunction() const { |
Handle<Object> AsmJsWasmStackFrame::GetFileName() { |
Handle<Script> script = |
wasm::GetScript(Handle<JSObject>::cast(wasm_instance_)); |
- DCHECK_EQ(Script::TYPE_NORMAL, script->type()); |
+ DCHECK(script->IsUserJavaScript()); |
return handle(script->name(), isolate_); |
} |
@@ -765,7 +765,7 @@ int AsmJsWasmStackFrame::GetLineNumber() { |
DCHECK_LE(0, GetPosition()); |
Handle<Script> script = |
wasm::GetScript(Handle<JSObject>::cast(wasm_instance_)); |
- DCHECK_EQ(Script::TYPE_NORMAL, script->type()); |
+ DCHECK(script->IsUserJavaScript()); |
return Script::GetLineNumber(script, GetPosition()) + 1; |
} |
@@ -773,7 +773,7 @@ int AsmJsWasmStackFrame::GetColumnNumber() { |
DCHECK_LE(0, GetPosition()); |
Handle<Script> script = |
wasm::GetScript(Handle<JSObject>::cast(wasm_instance_)); |
- DCHECK_EQ(Script::TYPE_NORMAL, script->type()); |
+ DCHECK(script->IsUserJavaScript()); |
return Script::GetColumnNumber(script, GetPosition()) + 1; |
} |