-
Notifications
You must be signed in to change notification settings - Fork 3
editorial review #9
Comments
I mostly based it on
I'll update the version of the proposal in this repo. I already have them in this PR: rbuckton/ecma262#3.
Also addressed in rbuckton/ecma262#3, but I'll update here as well.
Can you point out where this needs to be fixed? I can't seem to find it except in places where the original algorithm might have changed (i.e., it's not occuring in any of the
I may have already done this, I just pushed up some changes that I also made in the ECMA262 PR for the sync version of the proposal.
This is already addressed in rbuckton/ecma262#3 and is an artifact of the version of the specification this proposal's draft spec text was created against.
Already addressed in rbuckton/ecma262#3, but I'll fix here as well.
This is the exact same text as in the
It is a function object to keep |
I still think it would be a better end result if they were structured similarly.
Oops, I didn't realise you had a PR.
The cases I noticed were in https://tc39.es/proposal-async-explicit-resource-management/#sec-let-and-const-declarations-runtime-semantics-evaluation. They can be
I see you've pulled the
Differ here. We can clean up confusing alias names in existing AOs separately.
In |
Already done.
It's not against tc39/ecma262, yet. I'm hoping I can merge it into tc39/ecma262#3000 following the January plenary because of the overlap, and if not I'll create a separate PR.
Ah. This is another case of drift from the version of the spec this was originally written against. It's already fixed in rbuckton/ecma262#3.
Ah, thanks. I'll fix that here and in tc39/ecma262#3000.
I can change it, but this is the same text used in
In #10 I've changed this algorithm to use an abstract closure and |
Yep. |
This is a strictly editorial review. I didn't review for correctness.
IsUsingAwaitDeclaration
is missing a definition forForDeclaration : LetOrConst ForBinding
IsUsingDeclaration
mirror the structure ofIsUsingAwaitDeclaration
, replacing somefalse
s withtrue
s. We don't need to take maximum advantage of the chain rule. I would also combine all the other productions into one big "Returnfalse
" case.AddDisposableResource
always returnsNormalCompletion(empty)
. AOs that always return normal completions should not use completion records.~unused~
, not~empty~
. Ecmarkup will enforce that these AOs are treated like procedures.NormalCompletion()
wrappers around the returned values. See https://tc39.es/ecma262/#sec-implicit-normal-completion.Dispose
inDisposeResources
or any of the calls ofDisposeResources
itself. If the AO return types were annotated, I believe ecmarkup would have reported this.?
macro with SDOs (you already use it in some places), so you don't need to have a separateReturnIfAbrupt
step.Using
flags introduced. One seems to mean "ausing
declaration is allowed here" and another seems to mean "this production is nested within ausing
declaration". I would probably try to name them two different things to communicate that they are distinct.undefined
check out ofDisposeResources
. It appears that the first parameter ofDisposeResources
isn't something that just dynamically arrives at anundefined
value; instead, the call sites are explicitly setting it toundefined
. In those cases, I prefer the guard to be outside the AO.Evaluation
SDO. See Editorial: MakeEvaluation
more like regular SDOs ecma262#2744.lookahead ∉ { using }
: we have alookahead ≠
form that should be preferred when the set only contains 1 elementSuppressedError
constructor, I don't like having an alias namedmessage
and a separate alias namedmsg
. Please rename one or both.The text was updated successfully, but these errors were encountered: