Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index f543381c85baa7b7bd8c86619bc7eb6a39207902..a32bc5a80ba0b83d7341eaf875557efc07e1aa41 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -867,6 +867,9 @@ enum VariableMode { |
LET, // declared via 'let' declarations (first lexical) |
+ // TODO(neis): Is it correct to make this one of the lexical modes? |
+ IMPORT, // declared via 'import' declarations (except namespace imports) |
+ |
CONST, // declared via 'const' declarations (last lexical) |
// Variables introduced by the compiler: |
@@ -902,7 +905,7 @@ inline bool IsLexicalVariableMode(VariableMode mode) { |
inline bool IsImmutableVariableMode(VariableMode mode) { |
- return mode == CONST || mode == CONST_LEGACY; |
+ return mode == CONST || mode == CONST_LEGACY || mode == IMPORT; |
} |