We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13efdcb commit 44b4886Copy full SHA for 44b4886
docs/generator.md
@@ -700,7 +700,7 @@ g.next() // { value: 1, done: false }
700
g.return() // { value: undefined, done: true }
701
```
702
703
-如果 Generator 函数内部有`try...finally`代码块,那么`return`方法会推迟到`finally`代码块执行完再执行。
+如果 Generator 函数内部有`try...finally`代码块,且正在执行`try`代码块,那么`return`方法会推迟到`finally`代码块执行完再执行。
704
705
```javascript
706
function* numbers () {
0 commit comments