elierotenberg / elierotenberg/coding-styles

Immediate invocation of ES6 shorthand generator?

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
401
Forks
82
PR merge metrics
No merged PRs in 30d

Description

Doesn't work (throws unexpected token):

``` js
app.use(*g() {
this.body = 'hello world';
});
```

Works:

``` js
app.use(function *() {
this.body = 'hello world';
});
```

Any insight as to why?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.