Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index c11bbd1629f66cf05aa0de2597504f8ede45a840..9f8fc13653a893d8c2adc7fcc2884773f2fd8f34 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -475,7 +475,7 @@ class ParserBase : public Traits { |
bool* ok) { |
if (is_sloppy(language_mode) && !strict_params) return; |
- if (eval_args_error_loc.IsValid()) { |
+ if (is_strict(language_mode) && eval_args_error_loc.IsValid()) { |
Traits::ReportMessageAt(eval_args_error_loc, "strict_eval_arguments"); |
*ok = false; |
return; |