Created
August 1, 2022 05:57
-
-
Save hnakamur/1a477edfbb9af9efaf6e5657123c0eac to your computer and use it in GitHub Desktop.
show JavaScirpt alert from window.onerror
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.onerror = () => alert("Hello, World!"); | |
function hello(x) { | |
if(typeof x === 'undefined') { | |
alert(x.f()); | |
} | |
} | |
hello(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment