Created
June 26, 2014 07:17
-
-
Save geastwood/09f8013c7f1fcd73aeba to your computer and use it in GitHub Desktop.
named function
This file contains hidden or 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
var constructor = function() {return null;}; | |
var f = function f() { | |
return constructor(); | |
}; | |
f(); | |
// Under ES3 | |
// logs {}, object literal | |
// Under ES5 | |
// logs correctly, null | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment