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!
2.1m questions
2.1m answers
60 comments
57.0k users