benjamn / benjamn/ast-types

await is a unary expression now

Open
#113 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
194
Avg merge
22h 43m
Merged PRs (30d)
10

Description

Async/await now has a [semi-official posted draft spec](http://tc39.github.io/ecmascript-asyncawait/#UnaryExpression) and they've decided to make `await foo` a unary expression.

Any opinion on how to move forward? Support definitions for both `AwaitExpression` and add `await` to `UnaryOperator`s in es7.js?

CC @nmote

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the issue's linked async/await draft specification and the existing definitions in es7.js. Compare the handling of AwaitExpression with the UnaryOperator definitions, then determine which representation the project should support; done means the chosen model is implemented consistently and covered by the project's relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.