OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --harmony-scoping --lazy | 5 // Flags: --lazy |
6 | 6 |
7 function foo(a, b, c, d) { | 7 function foo(a, b, c, d) { |
8 "use strict" | 8 "use strict" |
9 const x = 10; | 9 const x = 10; |
10 // long comment to trigger lazy compilation. | 10 // long comment to trigger lazy compilation. |
11 // long comment to trigger lazy compilation. | 11 // long comment to trigger lazy compilation. |
12 // long comment to trigger lazy compilation. | 12 // long comment to trigger lazy compilation. |
13 // long comment to trigger lazy compilation. | 13 // long comment to trigger lazy compilation. |
14 // long comment to trigger lazy compilation. | 14 // long comment to trigger lazy compilation. |
15 // long comment to trigger lazy compilation. | 15 // long comment to trigger lazy compilation. |
(...skipping 10 matching lines...) Loading... |
26 // long comment to trigger lazy compilation. | 26 // long comment to trigger lazy compilation. |
27 // long comment to trigger lazy compilation. | 27 // long comment to trigger lazy compilation. |
28 // long comment to trigger lazy compilation. | 28 // long comment to trigger lazy compilation. |
29 // long comment to trigger lazy compilation. | 29 // long comment to trigger lazy compilation. |
30 // long comment to trigger lazy compilation. | 30 // long comment to trigger lazy compilation. |
31 // long comment to trigger lazy compilation. | 31 // long comment to trigger lazy compilation. |
32 x = 20; // This will trigger compile error with harmony scoping. | 32 x = 20; // This will trigger compile error with harmony scoping. |
33 } | 33 } |
34 | 34 |
35 assertThrows("foo.length()"); | 35 assertThrows("foo.length()"); |
OLD | NEW |