-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: GetValue and PutValue do not need to unwrap Completion Records #2842
Conversation
1b3cc55
to
3ddbd42
Compare
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.
InitializeReferencedBinding
also calls ReturnIfAbrupt
on its 2 parameters, so it might make sense to include it in this PR.
Done. In the process I marked initialization of |
2f9e98c
to
5c5f020
Compare
spec.html
Outdated
@@ -22038,7 +22032,7 @@ <h1> | |||
1. Set the running execution context's LexicalEnvironment to _newEnv_. | |||
1. Let _exprRef_ be Completion(Evaluation of _expr_). | |||
1. Set the running execution context's LexicalEnvironment to _oldEnv_. | |||
1. Let _exprValue_ be ? GetValue(_exprRef_). | |||
1. Let _exprValue_ be ? GetValue(? _exprRef_). |
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.
Out of curiosity did ecmarkup find this or was this manually audited?
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.
Manually, alas. ecmarkup does not yet track types except for checking the completion-ness of callsites of AOs, which is purely local.
5410f2e
to
97e2321
Compare
#2744 removed almost every case where GetValue or PutValue was passed a completion record, instead explicitly unwrapping on the previous line or lines. This removes the final three cases and then updates the definitions of those algorithms so that they do not need to handle being passed Completion Records.