bloomberg / record-tuple-polyfill

A polyfill for the ECMAScript Record and Tuple proposal.
Apache License 2.0
164 stars 11 forks source link

ensure that WeakMap and WeakSet throw with Record/Tuple keys #81

Closed rickbutton closed 2 years ago

rickbutton commented 2 years ago

resolves #76

acutmore commented 2 years ago

The polyfill uses WeakMap internally so needs to use the original prototype methods directly, and avoid the shims that block R/T.

FYI these changes also seem to have been deployed to the playground already.