Executing this snippet in the Chrome console:
function foo() { return typeof null === 'undefined'; } for(var i = 0; i < 1000; i++) console.log(foo());
There is a chromium bug open for this:
Issue 604033 - JIT compiler not preserving method behavior
So yes It's just a bug!
1.4m articles
1.4m replys
5 comments
57.0k users