Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index f3c6db26508625bda844b972d3e8eecac708cc5f..3ad4d87d4279d45606602c482cdcc71ddbb0628e 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6325,7 +6325,7 @@ bool SharedFunctionInfo::IsUserJavaScript() { |
Object* script_obj = script(); |
if (script_obj->IsUndefined(GetIsolate())) return false; |
Script* script = Script::cast(script_obj); |
- return static_cast<Script::Type>(script->type()) == Script::TYPE_NORMAL; |
+ return script->IsUserJavaScript(); |
} |
bool SharedFunctionInfo::IsSubjectToDebugging() { |