pre-Stage 3 review #42
Comments
Now that you mention it, I think "coalescing" is really the more important word here—even "CoalesceExpression" would likely suffice for uniqueness. |
Ugh, you're right but I was hoping to change it later. *gets to work* |
Should I change the grammar flag to |
Hmm, maybe just |
I don't think |
I think I'm going to run with |
#43 is merged. @rkirsling @codehag @zenparsing, would you be able to review the current spec text? |
LGTM (and confirmed ease of implementation using JSC 😁). Still rooting for #40! |
LGTM! |
Spec text 👍 |
Fresh LGTM (note that we should probably find a way to make sure that |
We've already done that (it returns |
Grammar isn't my strong suit, but I don't see where an object with an Perhaps what's needed is an addition to https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot ? |
Is there something that obliges us to give it special treatment here? Edit: Er whoops, I was trying to say that |
Specifying "val is null or undefined" should be enough to distinguish that |
Got it, thanks for clarifying :-) I think you’re right that the current spec means that |
That is true, but ignoring Annex B is effectively creating a special case here. In particular:
If we're going to give |
I think that this is a lack of special treatment, since document.all can be navigated into already without throwing. |
So here's what WHATWG states as the goal of this bewildering "masquerade-as-undefined" behavior:
That is, the aim is to have feature checks for it always fail while having its actual functionality preserved. Now, even if we throw out all presuppositions about desugaring and strictly focus on surface intent, I want to argue that Say we have a function |
There's not going to be any new code written with |
Hmm, perhaps that is the best way to look at it. I guess I'm alright with this then, we just need to update the Optional Chaining README (at least, where it says "The desugaring is not exact in the sense that..."). |
(you'll also need signoff from the designated reviewers, and from @zenparsing)
Otherwise it seems good.
(It may be useful to merge this and optional chaining into one stage 3 proposal, if both are ready to advance, especially since there's a lot of spec interaction between them)
The text was updated successfully, but these errors were encountered: