This is a fairly short example. I copy and paste the code below into the file, save it and open it. Works great in Chrome, doesn't work, i.e. eleven.
Exit to the console - stupid! What's happening? Stumbled upon some strange mistake?
test.b is clearly not undefined, as it is accessible by the JSON parser and direct object evaluation.
In addition, switching the order of variables in the log function does not change anything so that test.b is undefined.
<!DOCTYPE html> <html> <head> <title>wtf</title> <script> var test = {a:1,b:{c:1}} console.log(test,JSON.stringify(test),test.b); </script> </head> <body> WTF IE </body> </html>

source share