...

View Full Version : Experts Only...



TNO
06-14-2008, 12:08 AM
This is more of a mental exercise than anything practical. Why does the following throw an exception? Should it really throw an exception?


var a,b,c;
a = (b == c)?
(new function(){
return "Path 1";
})():(new function(){
return "Path 2";
})();
alert(a);

TNO
06-14-2008, 01:36 AM
[Resolved] :

http://www.webdeveloper.com/forum/showthread.php?t=183884

mrhoo
06-14-2008, 01:44 AM
new Function(



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum