Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1112)

Unified Diff: src/debug/debug-evaluate.cc

Issue 2314483002: Store the ScopeInfo in WithContexts (Closed)
Patch Set: updates Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/contexts.cc ('k') | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug-evaluate.cc
diff --git a/src/debug/debug-evaluate.cc b/src/debug/debug-evaluate.cc
index fb2df312b879bffc6bb4a21cdb3350ea1a674f01..25c3c2603648c8df650b7868e0d5fd53532a0942 100644
--- a/src/debug/debug-evaluate.cc
+++ b/src/debug/debug-evaluate.cc
@@ -94,7 +94,8 @@ MaybeHandle<Object> DebugEvaluate::Evaluate(
if (context_extension->IsJSObject()) {
Handle<JSObject> extension = Handle<JSObject>::cast(context_extension);
Handle<JSFunction> closure(context->closure(), isolate);
- context = isolate->factory()->NewWithContext(closure, context, extension);
+ context = isolate->factory()->NewWithContext(
+ closure, context, ScopeInfo::CreateForWithScope(isolate), extension);
}
Handle<JSFunction> eval_fun;
@@ -204,7 +205,8 @@ DebugEvaluate::ContextBuilder::ContextBuilder(Isolate* isolate,
for (int i = context_chain_.length() - 1; i >= 0; i--) {
evaluation_context_ = factory->NewDebugEvaluateContext(
- evaluation_context_, context_chain_[i].materialized_object,
+ evaluation_context_, ScopeInfo::CreateForWithScope(isolate),
+ context_chain_[i].materialized_object,
context_chain_[i].wrapped_context, context_chain_[i].whitelist);
}
}
« no previous file with comments | « src/contexts.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698