Skip to content

Instantly share code, notes, and snippets.

@mdesson
Last active April 25, 2021 14:28
Show Gist options
  • Save mdesson/b87c51ff4caf7bd4d2f74b52e8d643cc to your computer and use it in GitHub Desktop.
Save mdesson/b87c51ff4caf7bd4d2f74b52e8d643cc to your computer and use it in GitHub Desktop.
crasher = someBool => {
let divZero = Math.min(Infinity ? [] : Infinity, -0) / 0;
if (someBool) divZero = -0;
return divZero ? 1 : 0
};
crasher(false);
for (let i = 0; i < 0x10000; ++i) crasher(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment