facebookarchive/prepack

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

Open

#1 010 ouverte le 27 sept. 2017

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (520 forks)batch import
abstractenhancementhelp wantedtest needed

Métriques du dépôt

Stars
 (14 268 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur