| Index: src/api.cc
 | 
| diff --git a/src/api.cc b/src/api.cc
 | 
| index 810da61060516ac21150788c9c81cf8648acb974..30d4fcc28c8e3d47fae941b55f6a3ad949afb8eb 100644
 | 
| --- a/src/api.cc
 | 
| +++ b/src/api.cc
 | 
| @@ -9406,7 +9406,7 @@ void debug::GetLoadedScripts(v8::Isolate* v8_isolate,
 | 
|      i::Script::Iterator iterator(isolate);
 | 
|      i::Script* script;
 | 
|      while ((script = iterator.Next())) {
 | 
| -      if (script->type() != i::Script::TYPE_NORMAL) continue;
 | 
| +      if (!script->IsUserJavaScript()) continue;
 | 
|        if (script->HasValidSource()) {
 | 
|          i::HandleScope handle_scope(isolate);
 | 
|          i::Handle<i::Script> script_handle(script, isolate);
 | 
| 
 |