bug_gh6303.js 208 B

123456789101112
  1. let i = 0;
  2. function main() {
  3. if (i++ > 2) return;
  4. Array.prototype.sort.call(main, ()=>{})()++; // throws ref error
  5. Array.prototype.sort.call(main, ()=>{});
  6. }
  7. try { main(); }
  8. catch {}
  9. print('PASSED');