Index: src/log-inl.h |
diff --git a/src/log-inl.h b/src/log-inl.h |
index 82f5e7d7dce6b162379e7d2720fea7f85730b588..520d05c4d3381b29169b216ffdb088dd74c6d909 100644 |
--- a/src/log-inl.h |
+++ b/src/log-inl.h |
@@ -14,8 +14,8 @@ namespace internal { |
Logger::LogEventsAndTags Logger::ToNativeByScript(Logger::LogEventsAndTags tag, |
Script* script) { |
- if ((tag == FUNCTION_TAG || tag == LAZY_COMPILE_TAG || tag == SCRIPT_TAG) |
- && script->type()->value() == Script::TYPE_NATIVE) { |
+ if ((tag == FUNCTION_TAG || tag == LAZY_COMPILE_TAG || tag == SCRIPT_TAG) && |
+ script->type() == Script::TYPE_NATIVE) { |
switch (tag) { |
case FUNCTION_TAG: return NATIVE_FUNCTION_TAG; |
case LAZY_COMPILE_TAG: return NATIVE_LAZY_COMPILE_TAG; |