binaryage / cljs-oops

ClojureScript macros for convenient native Javascript object access.
Other
350 stars 13 forks source link

Diagnostics: check for frozen objects when attempting `oset` #16

Closed darwin closed 6 years ago

darwin commented 6 years ago

Unexpectedly dealing with frozen objects could cause a lot of confusion. We should check for frozen objects in dev mode and give user a friendly, descriptive warning.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen

donmullen commented 6 years ago

Also Object.seal https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal