You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiler: synthesized parameter field resets an earlier initializer write #3521
Compile as an unchecked .js fixture with sharpts --no-tsconfig --noLib --compile repro.js -o repro.dll --verify. The saved assembly from unchanged main cabb41636 passes complete IL verification and prints 7 undefined 1 value,first,last.
Expected 7 7 1 value,first,last. An ES2022 class with an initial value; declaration and an assignment this.value = value in the constructor prints that result in Node. The synthesized field at the constructor's source position must not reset the earlier initializer's write before last is initialized.
Found when checking the compiled equivalent of the interpreter-only #3482 regression in #3510. This is separate from #3514, which concerns the missing initial declaration on an escaped replacement receiver after abrupt completion. All-state parameter-property and field-reset searches found no focused compiler owner for this successful-construction case.
Activity