Skip to content

Commit

Permalink
Exponentiation operator support
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemGovorov committed Nov 4, 2017
1 parent 55dde64 commit 0c0fa94
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions escodegen.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@
BitwiseSHIFT: 10,
Additive: 11,
Multiplicative: 12,
Unary: 13,
Postfix: 14,
Call: 15,
New: 16,
TaggedTemplate: 17,
Member: 18,
Primary: 19
Exponentiation: 13,
Unary: 14,
Postfix: 15,
Call: 16,
New: 17,
TaggedTemplate: 18,
Member: 19,
Primary: 29
};

BinaryPrecedence = {
Expand Down Expand Up @@ -131,7 +132,8 @@
'-': Precedence.Additive,
'*': Precedence.Multiplicative,
'%': Precedence.Multiplicative,
'/': Precedence.Multiplicative
'/': Precedence.Multiplicative,
'**': Precedence.Exponentiation
};

//Flags
Expand Down

0 comments on commit 0c0fa94

Please sign in to comment.