keithamus / proposal-object-freeze-seal-syntax

A JavaScript TC39 proposal for Object.freeze & Object.seal syntax
https://www.keithcirkel.co.uk/object-freeze-seal-syntax
59 stars 8 forks source link

Use Object.create(null); to create frozen/sealed objects Fixes #11 #12

Closed graingert closed 6 years ago

graingert commented 6 years ago

this uses a babel helper function for freeze and seal that uses Object.create(null); as the initial object.

(obviously frozen arrays still have an Array protototype)

graingert commented 6 years ago

Ok done