Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index c5beb7cfe8c4701946014f5807ad5a456280d201..0e81498c5d8be7cd2a5d35f36a8a238b4f8eca95 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -87,11 +87,12 @@ ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, |
// Reparse the code and analyze the scopes. |
// Check whether we are in global, eval or function code. |
+ Zone zone(isolate->allocator(), ZONE_NAME); |
std::unique_ptr<ParseInfo> info; |
if (scope_info->scope_type() != FUNCTION_SCOPE) { |
// Global or eval code. |
Handle<Script> script(Script::cast(shared_info->script())); |
- info.reset(new ParseInfo(script)); |
+ info.reset(new ParseInfo(&zone, script)); |
if (scope_info->scope_type() == EVAL_SCOPE) { |
info->set_eval(); |
if (!function->context()->IsNativeContext()) { |
@@ -107,7 +108,7 @@ ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, |
} |
} else { |
// Inner function. |
- info.reset(new ParseInfo(shared_info)); |
+ info.reset(new ParseInfo(&zone, shared_info)); |
} |
if (parsing::ParseAny(info.get()) && Rewriter::Rewrite(info.get())) { |
DeclarationScope* scope = info->literal()->scope(); |