Re: [whatwg/streams] Convert internal slot accesses in the reference implementation to use symbols (#443)

One thing, though: using things like `Symbol('[[Cancel]]')` in the reference implementation means that the reference implementation and the spec will in fact have different behavior, no?  In particular, the reference implementation will leak its stuff via `Object.getOwnPropertySymbols` and the spec will not.

It's not clear what the goal of the reference implementation is, but if the goal is that it be a correct implementation of the spec while being valid ES6, then I expect the only reasonable way to implement the spec concept of internal slots is via weakmaps that are never exposed directly.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/443#issuecomment-223967785

Received on Monday, 6 June 2016 14:02:12 UTC