bloomberg / record-tuple-polyfill

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

Support primitive values in boxes #72

Closed nicolo-ribaudo closed 2 years ago

nicolo-ribaudo commented 3 years ago

This matches what the proposal currently allows.

There isn't a good way to polyfill boxes of primitives without leaking memory, so I added a warning. Is it ok, or should I remove it?

mhofman commented 3 years ago

There isn't a good way to polyfill boxes of primitives without leaking memory

How is it different than a record or tuple of only primitives?

nicolo-ribaudo commented 3 years ago

Oh that's true, I'll check how they are handled.

rickbutton commented 2 years ago

closing this as box is gone