Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index a3ae4abd00bbc1f33dde5aaa8d2efb38aa6dc2e4..38d5ab27261186ae2f87bc41fd925317fe116bdb 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -712,12 +712,10 @@ enum VariableMode { |
CONST_LEGACY, // declared via legacy 'const' declarations |
- LET, // declared via 'let' declarations (first lexical) |
+ LET, // declared via 'let' declarations |
CONST, // declared via 'const' declarations |
- MODULE, // declared via 'module' declaration (last lexical) |
- |
// Variables introduced by the compiler: |
INTERNAL, // like VAR, but not user-visible (may or may not |
// be in a context) |
@@ -745,17 +743,17 @@ inline bool IsDynamicVariableMode(VariableMode mode) { |
inline bool IsDeclaredVariableMode(VariableMode mode) { |
- return mode >= VAR && mode <= MODULE; |
+ return mode >= VAR && mode <= CONST; |
} |
inline bool IsLexicalVariableMode(VariableMode mode) { |
- return mode >= LET && mode <= MODULE; |
+ return mode == LET || mode == CONST; |
} |
inline bool IsImmutableVariableMode(VariableMode mode) { |
- return (mode >= CONST && mode <= MODULE) || mode == CONST_LEGACY; |
+ return mode == CONST || mode == CONST_LEGACY; |
} |