[Decorators] Missing error when calling addInitializer
after that the decorator is done
#57300
Labels
Needs Investigation
This issue needs a team member to investigate its status.
π Search Terms
decorators addInitializer error
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?#code/DYUwLgBAhgJjCSA7AlmZVjIF4gE4DFcB7AWwEYAuCAERAGMjcoxGBhIxMEADzAG0ARLAQo0GbHgEBdANwBYAFCKAZgFdEdNBwgx6ZABQB9KlEQBPADQRN3KrQZMWudpx5gAlBADeiiNDhIqOiYOATE5BAAvNZg3AB0woFiIXjyCgC+iirqmsjaunQATEYm5laGhaVmnj4KfomiwRJhpAb6npEAfN7p7r7WHADORKBxwEQA5voCAILU1ACi1AJ9GVkKdMBQg4MQM979AAIFhUcFZP3KRERREGRpmUoKQA
π» Code
π Actual behavior
The
addInitializerFrom1
call should throwπ Expected behavior
addInitializerFrom1
doesn't throwAdditional information about the issue
Spec: https://ci.tc39.es/preview/tc39/ecma262/sha/59003ed603d09485b957a0f579b46697f49a96a6/#sec-applydecoratorstoelementdefinition
After that
dec1
is called, decorationState.[[Finished]] for the decorationState relative todec1
is set tofalse
and thus callingaddInitializer
should throw.The text was updated successfully, but these errors were encountered: