mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 15:15:51 -06:00
Merge pull request #7821 from Microsoft/transforms-fixTransformFlagsTypeForExponentiation
Fixed typo when computing transform flags for exponentation
This commit is contained in:
commit
4d8c00f43d
@ -2164,7 +2164,7 @@ namespace ts {
|
||||
// Destructuring assignments are ES6 syntax.
|
||||
transformFlags = TransformFlags.AssertES6 | TransformFlags.DestructuringAssignment;
|
||||
}
|
||||
else if (isExponentiation(node)) {
|
||||
else if (isExponentiation(node.operatorToken)) {
|
||||
// Exponentiation is ES7 syntax.
|
||||
transformFlags = TransformFlags.AssertES7;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user