mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 12:03:44 -05:00
Fixed typo when computing transform flags for exponentation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user