0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-15 01:57:09 -05:00
denoland-deno/cli/tests/testdata/deno_exit_tampering.ts
Yoshiya Hinosawa ff37b255c6
fix: prevent Deno.exit to fail when dispatchEvent tampered (#14665)
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-05-27 11:21:23 +10:00

3 lines
92 B
TypeScript

delete globalThis.dispatchEvent;
delete EventTarget.prototype.dispatchEvent;
Deno.exit(42);