Index: test/mjsunit/regress/regress-2506.js |
diff --git a/test/mjsunit/regress/regress-2506.js b/test/mjsunit/regress/regress-2506.js |
index e6b37d3fdbb1305d81aa6e06c1970322f8745a54..ee84392a46b60491bb6d324e7224838f49943839 100644 |
--- a/test/mjsunit/regress/regress-2506.js |
+++ b/test/mjsunit/regress/regress-2506.js |
@@ -46,7 +46,7 @@ for (const x in [1,2,3]) { |
} |
assertEquals("012", s); |
-assertThrows(function() { for(const x in [1,2,3]) { x++ } }, SyntaxError); |
+assertThrows("'use strict'; for (const x in [1,2,3]) { x++ }", SyntaxError); |
// Function scope |
(function() { |