Skip to content

Instantly share code, notes, and snippets.

@hotsphink
Created July 1, 2020 21:18
Show Gist options
  • Select an option

  • Save hotsphink/55fff627a9e376bc890416207d3282b2 to your computer and use it in GitHub Desktop.

Select an option

Save hotsphink/55fff627a9e376bc890416207d3282b2 to your computer and use it in GitHub Desktop.
mkgist-created gist
var g1 = newGlobal({newCompartment: true});
g1.debuggeeGlobal = this;
g1.eval(`
dbg = new Debugger(debuggeeGlobal);
dbg.onExceptionUnwind = () => undefined;
`);
var g2 = newGlobal({newCompartment: true});
try {
g2.eval('h = {}; quintessence');
} catch (x) {}
try {
g2.eval("throw h");
} catch (x) {}
gcslice(100000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment