暫時測試用番 null === undefined 取代就無事
// Result not consistent : 12291 false, 37709 true
for(var i=0; i<50000; ++i) {
console.log(typeof null === 'undefined')
}
// OR
for(var i=0; i<50000; ++i) {
console.log(typeof null == 'undefined')
}
// Quick fix
for(var i=0; i<50000; ++i) {
console.log(null === undefined)
}
Weak Typing Implicit Conversion....
不過同大家講番聲用 Weak Typing 嘅 Language 其實要好小心,因為 Implicit convert 好方便,同時都會好易中伏!
留意返!
除咗 Chrome 50、51 Chromium Issue
[https://bugs.chromium.org/p/chromium/