tor-browser

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

exception-column-number.js (412B)


      1 try {
      2    Array.from();
      3 } catch (e) {
      4    assertEq(e.columnNumber, 11);
      5    // Filter the filename from the stack, since we have no clue what
      6    // to expect there.  Search for ':' from the end, because the file
      7    // path may contain ':' in it.
      8    var lastColon = e.stack.lastIndexOf(':');
      9    var afterPath = e.stack.lastIndexOf(':', lastColon - 1);
     10    assertEq(e.stack.substring(afterPath), ":2:11\n");
     11 }