Merge pull request #7821 from Microsoft/transforms-fixTransformFlagsTypeForExponentiation

Fixed typo when computing transform flags for exponentation
This commit is contained in:
Ron Buckton 2016-04-04 18:23:46 -07:00
commit 4d8c00f43d

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