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
I used default options, so I didn't write it in the issue.
It's strange, because when I test, the sample 1 happens... And now it not happen...
Let's ignore sample 1, until I figure out why...
I'm currently working through this for esbuild in evanw/esbuild#1166. I believe you can set missing properties to undefined when __proto__: null is present (so {__proto__: null}.a is always undefined) but not with ['__proto__']: null. You also need to be careful to preserve {__proto__: null}.__proto__ === undefined. JS is so messy.
Thanks for the input @evanw. I've read through this esbuild issue (it mentioned #980) for more insight. I don't know how widespread __proto__: null is though, so I don't know if it's worth the extra complexity. Maybe it's more worth it to optimize Map and Set (maybe an unsafe_collections option), since their behaviour is way more linear!
Activity
fabiosantoscode commentedon Apr 3, 2021
Hey there! I can't reproduce sample 1. What were the options you used?
LongTengDao commentedon Apr 4, 2021
I used default options, so I didn't write it in the issue.
It's strange, because when I test, the sample 1 happens... And now it not happen...
Let's ignore sample 1, until I figure out why...
evanw commentedon Apr 22, 2021
I'm currently working through this for esbuild in evanw/esbuild#1166. I believe you can set missing properties to
undefinedwhen__proto__: nullis present (so{__proto__: null}.ais alwaysundefined) but not with['__proto__']: null. You also need to be careful to preserve{__proto__: null}.__proto__ === undefined. JS is so messy.fabiosantoscode commentedon Apr 23, 2021
Thanks for the input @evanw. I've read through this esbuild issue (it mentioned #980) for more insight. I don't know how widespread
__proto__: nullis though, so I don't know if it's worth the extra complexity. Maybe it's more worth it to optimize Map and Set (maybe an unsafe_collections option), since their behaviour is way more linear!