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:
committed by
Henry Zhu
parent
c4696a5bd2
commit
23f98a753a
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user