aboutsummaryrefslogtreecommitdiff
path: root/test/js/promise_rejection_tracker_recursive.t.js
blob: ba723534df0b51c1b13aa2638931970b4a0bb18d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*---
includes: []
flags: []
negative:
  phase: runtime
---*/

String.toString = async () => {
    String.prototype.concat([String, {toString(){ throw String; }}]);
    throw 1;
};
String.valueOf = String;

(async function() { throw String; })()