Slightly improve tests that rely on lazy compilation.
R=rossberg@chromium.org BUG=v8:3712 LOG=N Review URL: https://codereview.chromium.org/743843003 Cr-Commit-Position: refs/heads/master@{#25463}
This commit is contained in:
parent
34363bf5aa
commit
5414c39974
@ -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"
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user