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

Merge pull request #815 from byog/patch-3

Update async.md
This commit is contained in:
Ruan YiFeng 2019-02-19 14:30:47 +08:00 committed by GitHub
commit 23883cc0af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -523,7 +523,7 @@ const a = async () => {
};
```
上面代码中,`b()`运行的时候,`a()`是暂停执行,上下文环境都保存着。一旦`b()``c()`,错误堆栈将包括`a()`
上面代码中,`b()`运行的时候,`a()`是暂停执行,上下文环境都保存着。一旦`b()``c()`报错,错误堆栈将包括`a()`
## async 函数的实现原理