coding-styles
coding-styles copied to clipboard
Immediate invocation of ES6 shorthand generator?
Doesn't work (throws unexpected token):
app.use(*g() {
this.body = 'hello world';
});
Works:
app.use(function *() {
this.body = 'hello world';
});
Any insight as to why?