Created
July 26, 2012 19:15
-
-
Save hzr/3183910 to your computer and use it in GitHub Desktop.
Check for Opera bug with nested redirected calls
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
var hasWorkingNestedRedirectedCalls = (function () { | |
function f(a) { return function() { return a.apply(this, arguments); }} | |
var g1 = f(function(a) { return a; }); | |
var g2 = new g1(g1); | |
return typeof g2 == "function"; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context: https://twitter.com/hzr/status/228417974577537024