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.

贡献者指南