Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Feature: JS Language Service needs to understand ES6 generator function syntax [587]

$
0
0
Although still a [draft](http://wiki.ecmascript.org/doku.php?id=harmony:generators#syntax), there seems to be an overwhelming consensus regarding the syntax for generator functions in ES6/Harmony.

Currently, code like this...
```
return function * renderView(next) {
this.render = views(path, opts);
yield next;
}
```
... causes several red squiggles in NTVS.

[koa](https://github.com/koajs/koa), the sequel to the "express" web application framework, which uses generators, already has a considerable momentum.

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>