diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 546b4159259..1cff02ffc48 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -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; }