tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug1945318.js (434B)


      1 // |jit-test| skip-if: getBuildConfiguration("release_or_beta"); --setpref=experimental.error_capture_stack_trace
      2 function not_called() {
      3 
      4 }
      5 
      6 let obj = {};
      7 function* a() {
      8    yield {}; // Need to be past initial yield
      9    Error.captureStackTrace(obj, not_called);
     10 }
     11 
     12 async function b() {
     13    let g = a();
     14    await g.next();
     15    await g.next();
     16 }
     17 
     18 b().then(() => {
     19    assertEq('stack' in obj, true);
     20    assertEq(obj.stack, "");
     21 })