Index: src/debug/debug-coverage.cc |
diff --git a/src/debug/debug-coverage.cc b/src/debug/debug-coverage.cc |
index 25d80cedf00012ef191774e768d1b491595ff45b..75643eda682b86de0fa0c56f098916dd1beca1bf 100644 |
--- a/src/debug/debug-coverage.cc |
+++ b/src/debug/debug-coverage.cc |
@@ -94,8 +94,7 @@ Coverage* Coverage::Collect(Isolate* isolate, bool reset_count) { |
Coverage* result = new Coverage(); |
Script::Iterator scripts(isolate); |
while (Script* script = scripts.Next()) { |
- // Dismiss non-user scripts. |
- if (script->type() != Script::TYPE_NORMAL) continue; |
+ if (!script->IsUserJavaScript()) continue; |
// Create and add new script data. |
Handle<Script> script_handle(script, isolate); |