Fixed typo when computing transform flags for exponentation

This commit is contained in:
Ron Buckton 2016-04-04 17:19:41 -07:00
parent bf62c75097
commit 27d0ea1904

View File

@ -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;
}