facebookarchive/prepack

Deal with undefined properties in special case for JSON.parse(JSON.stringify(abstractObject))

Open

#1,011 opened on Sep 27, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (520 forks)batch import
abstractenhancementhelp wantedserializertest needed

Repository metrics

Stars
 (14,268 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

If a known property of the abstractObject has an abstract value that may be undefined at runtime, then runtime code should be generated to delete (or not add) the property in the abstract value resulting from parse if the property value turns out to be undefined at runtime.

Contributor guide