You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had this issue before with IE.
Take a look at this code:
varx=10;functiona(){returnx;try{}catch(x){}};alert(a());// 10 in V8, undefined in IE
In IE (not sure until which version), if a variable is declared anywhere in the scope (inside any block, even a false if), it is available everywhere in that scope, even before its declaration.
Therefore this code overwrites define in environments like IE:
The text was updated successfully, but these errors were encountered:
duzun
changed the title
if(false) { var define; } overites the blobal define in IE - nodeAdapter.js
if(false) { var define; } overites the global define in IE - nodeAdapter.js
Nov 13, 2014
I had this issue before with IE.
Take a look at this code:
In IE (not sure until which version), if a variable is declared anywhere in the scope (inside any block, even a false if), it is available everywhere in that scope, even before its declaration.
Therefore this code overwrites define in environments like IE:
The text was updated successfully, but these errors were encountered: