add feature flag for es7.exponentiationOperator

This commit is contained in:
Sebastian McKenzie 2015-07-15 18:07:25 +01:00
parent b520a33195
commit 4b276b938b

View File

@ -237,7 +237,7 @@ pp.readToken_mult_modulo = function (code) { // '%*'
var width = 1; var width = 1;
var next = this.input.charCodeAt(this.pos + 1); var next = this.input.charCodeAt(this.pos + 1);
if (next === 42) { // '*' if (next === 42 && this.options.features["es7.exponentiationOperator"]) { // '*'
width++; width++;
next = this.input.charCodeAt(this.pos + 2); next = this.input.charCodeAt(this.pos + 2);
type = tt.exponent; type = tt.exponent;