It's not obvious to me from
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-list-and-record-specification-type
whether a Record is a value type or reference type.
At least some parts of the spec seem to assume it's a reference type.
Specifically,
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-createresolvingfunctions
is assuming that after it completes the two functions have
[[AlreadyResolved]] slots that are both references to the same exact
Record, so mutating the [[value]] in one of them will make the other see
the new [[[value]] as well.
If this is how Records work, it would be good to spell that out explicitly.
-Boris
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss