You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it uses Object.defineProperty to attach format info to the parsed object. How about using WeakMap to store/retrieve formats stored in a seperate global variable?
constformats=newWeakMap<any,FormatInfo>();{// store formats.set(obj,format)}{// retrieveformats.get(obj)}
Benifits:
It avoids "polluting" the parsed object with an extra symbol preperty.
Describe the feature
Currently it uses
Object.defineProperty
to attach format info to the parsed object. How about usingWeakMap
to store/retrieve formats stored in a seperate global variable?Benifits:
Additional information
The text was updated successfully, but these errors were encountered: