facebookarchive/prepack

Map NaN and Infinity to null in special case for JSON.parse(JSON.stringify(abstractObject))

Open

#1,010 建立於 2017年9月27日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (520 fork)batch import
abstractenhancementhelp wantedtest needed

倉庫指標

Star
 (14,268 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

If a property value is abstract can possibly be NaN or Infinity, then the abstract value should be wrapped in a conditional expression that returns null at runtime when the abstract values turns out to be NaN or Infinity at runtime.

貢獻者指南