-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address review feedback #306
Conversation
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
[[Realm]] | ||
[[Call]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added [[Call]]
to the table to acknowledge the different behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can those "extensible web" notes be marked as editors notes then? that way they can't possibly show up in the rendered main spec, and they'll get special styling to note them as such
Co-authored-by: Jordan Harband <ljharb@gmail.com>
spec.html
Outdated
@@ -98,7 +98,6 @@ <h1>[[Call]] ( _thisArgument_, _argumentsList_ )</h1> | |||
1. Let _wrappedThisArgument_ to ? GetWrappedValue(_targetRealm_, _thisArgument_). | |||
1. Let _result_ be the Completion Record of Call(_target_, _wrappedThisArgument_, _argumentsList_). | |||
1. If _result_.[[Type]] is ~normal~ or _result_.[[Type]] is ~return~, then | |||
1. Set _value_ to NormalCompletion(_result_.[[Value]]). | |||
1. Return ? GetWrappedValue(_callerRealm_, _value_). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value disappears, I need to send _result_
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ref #304
Address review feedback from @ljharb.
This seems like a bug, I'm removing the Completion wrapping.
I'd say for the editorial style. If check if the type is abrupt, I'd be compelled to add an assertion step saying completion type must be normal or return to clarity it won't be "continue or break". The positive if for normal or return makes the spec steps more clear. I'd prefer to defer this decision to an eventual PR to ECMA-262 if possible.
I agree the 3 of them seem good enough to make an abstraction, but this also seems more appropriate to a PR to ECMA-262? I can add an editorial note to point out the intention.
Thanks for catching this! We don't need this [[Realm]] internal in Wrapped Function Exotic Objects so I'm removing it for now. With some further review, the name would actually create weird hazard in
Realm.prototype.evaluate
.Trying to not bikeshed too much over the name, I'm renaming the abstraction to RealmImportValue, an alternative would be
ImportRealmValue
but I don't think there is no perfect option here.These are just editorial notes to help connecting to the ongoing integration with HTML, I don't think they should all be part of the final PR to ECMA-262.
Note taken. I'm gonna try to address this abstraction in a separate PR as I also have feedback from @syg about it.