Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* can you spot what is happening here */
/* the alert("X") should never execute */
<script>
onload = function() {
var fn = function() {
alert("X");
}
(function() { })();
}
</script>
@unscriptable

This comment has been minimized.

Copy link

@unscriptable unscriptable commented May 10, 2010

Nice one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment