Index: test/mjsunit/regress/regress-2506.js |
diff --git a/test/mjsunit/regress/regress-2506.js b/test/mjsunit/regress/regress-2506.js |
index ee84392a46b60491bb6d324e7224838f49943839..0eb2770e592a894999a8062f5feff0c14e10135a 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("'use strict'; for (const x in [1,2,3]) { x++ }", SyntaxError); |
+assertThrows("'use strict'; for (const x in [1,2,3]) { x++ }", TypeError); |
// Function scope |
(function() { |