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
'async' modifier cannot be used in an ambient context.ts #36989
This issue related to the method makeSerializePropertySymbol. In the 3.8.*(need to find the commit where it was done) was added the way to get the modifier flags const modifierFlags = getDeclarationModifierFlagsFromSymbol(p); of a symbol and use these flags to create nodes. The 3.7.* handles only static modifier const staticFlag = isStatic ? ModifierFlags.Static : 0; - that's why 3.7.* doesn't emit async modifier.
Activity
pocesar commentedon Feb 25, 2020
was going to post about this right now, the behavior from JS / TS is definitely off
DanielRosenwasser commentedon Feb 25, 2020
Tests should probably include a test for generators too.
francesc79 commentedon Feb 25, 2020
with typescript 3.7.5 work well
DanielRosenwasser commentedon Feb 25, 2020
Seems like this is fixed in the nightlies. Wesley Wigham (@weswigham) can you verify, track down the fix, and cherry-pick it?
chore: pin typescript to 3.7.x
chore: pin typescript to 3.7.x
a-tarasyuk commentedon Feb 26, 2020
This issue related to the method
makeSerializePropertySymbol. In the3.8.*(need to find the commit where it was done) was added the way to get the modifier flagsconst modifierFlags = getDeclarationModifierFlagsFromSymbol(p);of a symbol and use these flags to create nodes. The3.7.*handles only static modifierconst staticFlag = isStatic ? ModifierFlags.Static : 0;- that's why3.7.*doesn't emitasyncmodifier.cc Daniel Rosenwasser (@DanielRosenwasser) Wesley Wigham (@weswigham) zazos (@francesc79)
weswigham commentedon Feb 27, 2020
Oleksandr Tarasiuk (@a-tarasyuk) it regressed in #35731 probably, since prior to that we weren't pulling on "original" modifier flags from anywhere.
Looks broken in the nightlies to me
Update TypeScript to 3.8.3
Update TypeScript to 3.8.3