Re: [whatwg/streams] Links to "a new promise", "a promise resolved with", etc. are broken (#1020)

In this standard, we currently create promises always in the current realm, since we follow ES spec conventions. So we should probably start there.

However, we may at some point want to align with [the general web platform guidance](https://html.spec.whatwg.org/multipage/webappapis.html#realms-settings-objects-global-objects):

> In general, web platform specifications should use the relevant concept, applied to the object being operated on (usually the this value of the current method). This mismatches the JavaScript specification, where current is generally used as the default (e.g. in determining the JavaScript realm whose Array constructor should be used to construct the result in Array.prototype.map). But this inconsistency is so embedded in the platform that we have to accept it going forward.

This is complicated by the fact that the reference implementation (or any pure-JS implementation) has no way of accomplishing this, so testing will have to be done against browsers.

-- 
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/1020#issuecomment-546950738

Received on Monday, 28 October 2019 13:41:00 UTC