Index: src/contexts.h |
diff --git a/src/contexts.h b/src/contexts.h |
index b2e0661a348557a864150c67fa78985b53f18452..407e69b052c36f3f5a0ed4033bd59db1e4f71f68 100644 |
--- a/src/contexts.h |
+++ b/src/contexts.h |
@@ -492,10 +492,10 @@ class Context: public FixedArray { |
static int FunctionMapIndex(LanguageMode language_mode, bool is_generator) { |
return is_generator |
- ? (language_mode == CLASSIC_MODE |
+ ? (language_mode == SLOPPY_MODE |
? GENERATOR_FUNCTION_MAP_INDEX |
: STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX) |
- : (language_mode == CLASSIC_MODE |
+ : (language_mode == SLOPPY_MODE |
? FUNCTION_MAP_INDEX |
: STRICT_MODE_FUNCTION_MAP_INDEX); |
} |