Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 6f92bb7c7ad2875e882717fa69777a1e43fb5b19..f17520a092672e2cb52b4e75a3498fe772ea9fd4 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -5214,7 +5214,7 @@ void Parser::Internalize(Isolate* isolate, Handle<Script> script, bool error) { |
// Move statistics to Isolate. |
for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount; |
++feature) { |
- for (int i = 0; i < use_counts_[feature]; ++i) { |
+ if (use_counts_[feature] > 0) { |
isolate->CountUsage(v8::Isolate::UseCounterFeature(feature)); |
} |
} |