Add throw expressions (#6325)

* Add throw expressions

Stage 2 proposal: https://github.com/tc39/proposal-throw-expressions

* Update babylon

* Add to stage 2
This commit is contained in:
Justin Ridgewell
2017-09-27 16:15:44 -04:00
committed by Henry Zhu
parent c4696a5bd2
commit 23f98a753a
44 changed files with 247 additions and 6 deletions

View File

@@ -47,6 +47,7 @@ export const NUMBER_UNARY_OPERATORS = ["+", "-", "~"];
export const STRING_UNARY_OPERATORS = ["typeof"];
export const UNARY_OPERATORS = [
"void",
"throw",
...BOOLEAN_UNARY_OPERATORS,
...NUMBER_UNARY_OPERATORS,
...STRING_UNARY_OPERATORS,