1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 05:42:20 +00:00

Merge pull request #361 from toxichl/patch-2

The position of the asterisk is incorrect
This commit is contained in:
Ruan YiFeng 2017-03-29 14:52:52 +08:00 committed by GitHub
commit 8c083a0aaf

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;