1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

The position of the asterisk is incorrect

Combined with the previous content: 
```
由于Generator函数仍然是普通函数,所以一般的写法是上面的第三种,即星号紧跟在`function`关键字后面。**本书也采用这种写法**。
```
so, the position of the asterisk is incorrect ...
This commit is contained in:
Toxichl 2017-03-29 14:46:42 +08:00 committed by GitHub
parent 0c20540bdb
commit cd360410cf

View File

@ -585,7 +585,7 @@ try {
Generator函数体外抛出的错误可以在函数体内捕获反过来Generator函数体内抛出的错误也可以被函数体外的`catch`捕获。
```javascript
function *foo() {
function* foo() {
var x = yield 3;
var y = x.toUpperCase();
yield y;