Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 76118dce23d6a40feaf1b97bc65c6d9570b2d5b7..7e55833b458cc469b4c100812afc1f8aed007ce2 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -184,7 +184,7 @@ bool StackTraceFrameIterator::IsValidFrame() { |
Object* script = frame()->function()->shared()->script(); |
// Don't show functions from native scripts to user. |
return (script->IsScript() && |
- Script::TYPE_NATIVE != Script::cast(script)->type()->value()); |
+ Script::TYPE_NATIVE != Script::cast(script)->type()); |
} |