Index: src/scopes.cc |
diff --git a/src/scopes.cc b/src/scopes.cc |
index 19466e40a0d85def78cbf23551d84585752f7794..a611d7364ce461d56025b7cd5b83e0bb69074a2f 100644 |
--- a/src/scopes.cc |
+++ b/src/scopes.cc |
@@ -313,7 +313,7 @@ bool Scope::Analyze(ParseInfo* info) { |
if (!info->shared_info().is_null()) { |
Object* script = info->shared_info()->script(); |
native = script->IsScript() && |
- Script::cast(script)->type()->value() == Script::TYPE_NATIVE; |
+ Script::cast(script)->type() == Script::TYPE_NATIVE; |
} |
if (native ? FLAG_print_builtin_scopes : FLAG_print_scopes) scope->Print(); |