Skip to content

Instantly share code, notes, and snippets.

@valueof
Forked from hzr/gist:3183910
Created July 26, 2012 20:18
Show Gist options
  • Save valueof/3184261 to your computer and use it in GitHub Desktop.
Save valueof/3184261 to your computer and use it in GitHub Desktop.
Check for Opera bug with nested redirected calls
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