Why does the value of typeof null change inside a loop?

前端 未结 4 1012
一向
一向 2020-11-29 20:50

Executing this snippet in the Chrome console:

4条回答
  •  迷失自我
    2020-11-29 21:21

    This was fixed two month ago and will land in Chrome soon (already in Canary).

    V8 Issue 1912553002 - Fix 'typeof null' canonicalization in crankshaft

    Chromium Issue 604033 - JIT compiler not preserving method behavior

提交回复
热议问题