1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/cli/tests/testdata/deno_exit_tampering.ts
Yoshiya Hinosawa e7c894e8f5
fix: prevent Deno.exit to fail when dispatchEvent tampered (#14665)
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-05-20 11:57:05 +09:00

3 lines
92 B
TypeScript

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