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

Unified Diff: src/contexts.cc

Issue 2108193003: [modules] AST and parser rework. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@anonymous-declarations
Patch Set: . Created 4 years, 5 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
Index: src/contexts.cc
diff --git a/src/contexts.cc b/src/contexts.cc
index aa46b4793170a41c755d3f5c8b86f4678c0ba8f8..29f8a5be039e2d833e08576e6911482604bfe228 100644
--- a/src/contexts.cc
+++ b/src/contexts.cc
@@ -203,6 +203,10 @@ static void GetAttributesAndBindingFlags(VariableMode mode,
? BINDING_CHECK_INITIALIZED
: BINDING_IS_INITIALIZED;
break;
+ case IMPORT:
+ *attributes = READ_ONLY;
+ *binding_flags = BINDING_IS_INITIALIZED;
adamk 2016/07/13 18:38:21 Shouldn't this be checking the init_flag? like the
neis 2016/07/14 10:28:23 Need to think about this.
neis 2016/07/15 08:46:32 For now, I'm adding IMPORT to the UNREACHABLE case
+ break;
case DYNAMIC:
case DYNAMIC_GLOBAL:
case DYNAMIC_LOCAL:

Powered by Google App Engine
This is Rietveld 408576698