tc39 / proposal-record-tuple

ECMAScript proposal for the Record and Tuple value types. | Stage 2: it will change!
https://tc39.es/proposal-record-tuple/
2.5k stars 62 forks source link

no longer throw for toPrimitive of a record wrapper #321

Closed acutmore closed 2 years ago

acutmore commented 2 years ago

Closes #320

An alternative approach would be to add Symbol.toPrimitive on all Record wrappers, though this would introduce a new hidden intrinsic.

ljharb commented 2 years ago

ah, because there’s no Record.prototype to find it on :-/ that definitely won’t gain consensus