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

Unified Diff: src/contexts.cc

Issue 2203213003: Properly pass InitializationFlag back from ScriptContextTable lookups (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | test/mjsunit/regress/regress-crbug-633884.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/contexts.cc
diff --git a/src/contexts.cc b/src/contexts.cc
index 22c313ee047c31e2a0cece20cc28b48c433b2b36..b3cf255736d812c15b97c4f136935799d792b52c 100644
--- a/src/contexts.cc
+++ b/src/contexts.cc
@@ -233,6 +233,7 @@ Handle<Object> Context::Lookup(Handle<String> name, ContextLookupFlags flags,
}
*index = r.slot_index;
*variable_mode = r.mode;
+ *init_flag = r.init_flag;
*attributes = GetAttributesForMode(r.mode);
return ScriptContextTable::GetContext(script_contexts,
r.context_index);
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-633884.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698