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 --no-turbo-inlining | 5 // Flags: --allow-natives-syntax --harmony-tailcalls --no-turbo-inlining |
6 // TODO(v8:4698), TODO(ishell): support these cases. | 6 // TODO(v8:4698), TODO(ishell): support these cases. |
7 // Flags: --no-turbo --nostress-opt | 7 // Flags: --nostress-opt |
8 | 8 |
9 | 9 |
10 Error.prepareStackTrace = (error,stack) => { | 10 Error.prepareStackTrace = (error,stack) => { |
11 error.strace = stack; | 11 error.strace = stack; |
12 return error.message + "\n at " + stack.join("\n at "); | 12 return error.message + "\n at " + stack.join("\n at "); |
13 } | 13 } |
14 | 14 |
15 | 15 |
16 function checkStackTrace(expected) { | 16 function checkStackTrace(expected) { |
17 var e = new Error(); | 17 var e = new Error(); |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 }); | 351 }); |
352 }); | 352 }); |
353 }); | 353 }); |
354 }); | 354 }); |
355 }); | 355 }); |
356 }); | 356 }); |
357 }); | 357 }); |
358 } | 358 } |
359 | 359 |
360 run_tests(); | 360 run_tests(); |
OLD | NEW |