OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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: --strong-mode --harmony-arrow-functions | 5 // Flags: --strong-mode |
6 "use strict" | 6 "use strict" |
7 | 7 |
8 let prologue_dead = "(function outer() { if (false) { "; | 8 let prologue_dead = "(function outer() { if (false) { "; |
9 let epilogue_dead = " } })();"; | 9 let epilogue_dead = " } })();"; |
10 | 10 |
11 let prologue_live = "(function outer() { "; | 11 let prologue_live = "(function outer() { "; |
12 let epilogue_live = "})();"; | 12 let epilogue_live = "})();"; |
13 | 13 |
14 // For code which already throws a run-time error in non-strong mode; we assert | 14 // For code which already throws a run-time error in non-strong mode; we assert |
15 // that we now get the error already compilation time. | 15 // that we now get the error already compilation time. |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 ; | 220 ; |
221 | 221 |
222 class A2 { | 222 class A2 { |
223 m() { | 223 m() { |
224 class C2 extends B2 { | 224 class C2 extends B2 { |
225 } | 225 } |
226 } | 226 } |
227 } | 227 } |
228 class B2 { } | 228 class B2 { } |
229 })(); | 229 })(); |
OLD | NEW |