-
Notifications
You must be signed in to change notification settings - Fork 106
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
Dangling decorationState.[[Finished]] when throwing #500
Comments
@ljharb would this be a normative change to fix? Definitely was not the intended behavior |
Yes, but it doesn't seem like a controversial one. |
I also stumbled upon this in the Babel implementation, I'd love for it to be changed. |
It definitely will, I'll propose it at the upcoming plenary, just needed to figure out if it was normative |
You could probably fit it into today’s plenary session if you’re available. |
Unfortunately I am not available today, my schedule is packed at the moment 😕 |
@pzuraq I can present it for you of you want (this change) |
@nicolo-ribaudo I don't have a PR or slides for it unfortunately. The change is just to make the procedure that calls decorators be an explicit completion that catches the error and sets the |
Ok well, I opened pzuraq/ecma262#13 in the meanwhile. If you change your mind and you are ok with me presenting just ping me :) (this change is so small that the PR description is enough, it doesn't need slides). |
If a decorator throws, we don't set
decorationState.[[Finished]] = true
.This means that if
addInitializerClosure
is used later, it can still be called without throwing which might be a bit misleading.This applies to the two following steps:
The text was updated successfully, but these errors were encountered: