Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Update possible unary expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Sep 27, 2017
1 parent 5838352 commit 30c8089
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ast/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ A unary operator expression.

```js
enum UnaryOperator {
"-" | "+" | "!" | "~" | "typeof" | "void" | "delete"
"-" | "+" | "!" | "~" | "typeof" | "void" | "delete" | "throw"
}
```

Expand Down
3 changes: 2 additions & 1 deletion src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ export type UnaryOperator =
| "~"
| "typeof"
| "void"
| "delete";
| "delete",
| "throw";

export type UpdateExpression = NodeBase & {
type: "UpdateExpression",
Expand Down

0 comments on commit 30c8089

Please sign in to comment.