facebookarchive/prepack
在 GitHub 查看Produce abstract string for JSON.stringify(concreteObject) if properties are abstract
Open
#1,012 建立於 2017年9月27日
abstractbughelp wantedtest needed
倉庫指標
- Star
- (14,268 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
If a concrete object has properties with abstract values, the interpretation of SerializeJSONProperty in src/intrinsics/ecma262/JSON.js will either fail obscurely or do the wrong thing, such as returning undefined.
It would be better to first check for this case and then go into the JSON.stringify part of the special case code for dealing with JSON.parse(JSON.stringify(abstractObject)).