diff --git a/packages/babylon/src/tokenize.js b/packages/babylon/src/tokenize.js index 3a427e0241..cb5dec92cf 100755 --- a/packages/babylon/src/tokenize.js +++ b/packages/babylon/src/tokenize.js @@ -237,7 +237,7 @@ pp.readToken_mult_modulo = function (code) { // '%*' var width = 1; var next = this.input.charCodeAt(this.pos + 1); - if (next === 42) { // '*' + if (next === 42 && this.options.features["es7.exponentiationOperator"]) { // '*' width++; next = this.input.charCodeAt(this.pos + 2); type = tt.exponent;