Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index a7a3015bc6f3e63dcbf5d942e1f33b37ec66ebfe..bbd7c15608507bdbc9e6799af3123574afebd9a1 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1573,12 +1573,7 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForScript( |
isolate->counters()->total_load_size()->Increment(source_length); |
isolate->counters()->total_compile_size()->Increment(source_length); |
- // TODO(rossberg): The natives do not yet obey strong mode rules |
- // (for example, some macros use '=='). |
- bool use_strong = FLAG_use_strong && !isolate->bootstrapper()->IsActive(); |
- LanguageMode language_mode = |
- construct_language_mode(FLAG_use_strict, use_strong); |
- |
+ LanguageMode language_mode = construct_language_mode(FLAG_use_strict); |
CompilationCache* compilation_cache = isolate->compilation_cache(); |
// Do a lookup in the compilation cache but not for extensions. |
@@ -1690,8 +1685,7 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForStreamedScript( |
isolate->counters()->total_load_size()->Increment(source_length); |
isolate->counters()->total_compile_size()->Increment(source_length); |
- LanguageMode language_mode = |
- construct_language_mode(FLAG_use_strict, FLAG_use_strong); |
+ LanguageMode language_mode = construct_language_mode(FLAG_use_strict); |
parse_info->set_language_mode( |
static_cast<LanguageMode>(parse_info->language_mode() | language_mode)); |