Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index fade076b18c189e1fae8583b1c1ac46a1c21cc35..cb0b5e1c40eaf07591e5667514873846590aab1a 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -6,13 +6,14 @@ |
#include <memory> |
+#include "src/ast/ast.h" |
#include "src/ast/scopes.h" |
#include "src/debug/debug.h" |
#include "src/frames-inl.h" |
#include "src/globals.h" |
#include "src/isolate-inl.h" |
#include "src/parsing/parse-info.h" |
-#include "src/parsing/parser.h" |
+#include "src/parsing/parsing.h" |
#include "src/parsing/rewriter.h" |
namespace v8 { |
@@ -109,7 +110,7 @@ ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, |
// Inner function. |
info.reset(new ParseInfo(&zone, shared_info)); |
} |
- if (Parser::ParseStatic(info.get()) && Rewriter::Rewrite(info.get())) { |
+ if (parsing::ParseAny(info.get()) && Rewriter::Rewrite(info.get())) { |
DeclarationScope* scope = info->literal()->scope(); |
if (!ignore_nested_scopes || collect_non_locals) { |
CollectNonLocals(info.get(), scope); |