What can cause this behavior in IE7? I can’t reproduce this issue on jsfiddle…
var func=new Function('arg','return 2*2;');
alert(typeof func);
Returns object.
I’m totaly confused.
How to debug this issue? How to figure out why new Function is returning an object?
UPDATE
It shouldn’t be that way right? Or I just don’t understand something? To me it looks like Windows 8 bug.
https://www.dropbox.com/s/mhyuab3mhj2yu59/ie7_windows8_bug.png
UPDATE
This is up to IE8, in IE9 it’s gone.
Problem resolved via this solution: