OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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: --allow-natives-syntax --harmony-tailcalls | 5 // Flags: --allow-natives-syntax --harmony-tailcalls |
| 6 // TODO(v8:4698), TODO(ishell): support these cases. |
| 7 // Flags: --max-inlined-source-size=0 |
6 "use strict"; | 8 "use strict"; |
7 | 9 |
8 Error.prepareStackTrace = (error,stack) => { | 10 Error.prepareStackTrace = (error,stack) => { |
9 error.strace = stack; | 11 error.strace = stack; |
10 return error.message + "\n at " + stack.join("\n at "); | 12 return error.message + "\n at " + stack.join("\n at "); |
11 } | 13 } |
12 | 14 |
13 | 15 |
14 function CheckStackTrace(expected) { | 16 function CheckStackTrace(expected) { |
15 var e = new Error(); | 17 var e = new Error(); |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 assertEquals(153, tcf1()); | 387 assertEquals(153, tcf1()); |
386 assertEquals(153, tcf2()); | 388 assertEquals(153, tcf2()); |
387 assertEquals(153, tcf3()); | 389 assertEquals(153, tcf3()); |
388 assertEquals(153, tcf4()); | 390 assertEquals(153, tcf4()); |
389 } | 391 } |
390 test(); | 392 test(); |
391 test(); | 393 test(); |
392 %OptimizeFunctionOnNextCall(test); | 394 %OptimizeFunctionOnNextCall(test); |
393 test(); | 395 test(); |
394 })(); | 396 })(); |
OLD | NEW |