diff --git a/test/mjsunit/function-length-accessor.js b/test/mjsunit/function-length-accessor.js index 357ac3fdff..97c9f65822 100644 --- a/test/mjsunit/function-length-accessor.js +++ b/test/mjsunit/function-length-accessor.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-scoping +// Flags: --harmony-scoping --lazy function foo(a, b, c, d) { "use strict" diff --git a/test/mjsunit/regress/regress-2506.js b/test/mjsunit/regress/regress-2506.js index e6b37d3fdb..ee84392a46 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() {