facebookarchive/prepack

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

Open

#1010 aperta il 27 set 2017

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (520 fork)batch import
abstractenhancementhelp wantedtest needed

Metriche repository

Star
 (14.268 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor