Stage 2: BigInt (#588)

* Stage 2: BigInt

* Change plugin name to bigInt (camelcase).

* Update based on PR review, add test cases.

* Use hex for charCodes.
This commit is contained in:
William Horton
2017-06-27 23:35:57 -04:00
committed by Henry Zhu
parent fecdb6feeb
commit baa5f4dca7
22 changed files with 408 additions and 5 deletions

View File

@@ -554,6 +554,9 @@ export default class ExpressionParser extends LValParser {
case tt.num:
return this.parseLiteral(this.state.value, "NumericLiteral");
case tt.bigint:
return this.parseLiteral(this.state.value, "BigIntLiteral");
case tt.string:
return this.parseLiteral(this.state.value, "StringLiteral");