We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hm....
在实现async await的时候遇到的
async await
变量提升到底是不是个好东西
const obj = { called: false }; func(); function func() { obj.called = true; } module.exports = obj;
上面的代码是不能解释运行的..
因为解析到func()的时候,还没有func这个变量
func()
func
The text was updated successfully, but these errors were encountered:
我的解决思路是:
在进入新的作用域时,遍历同级节点,把有变量提升作用的节点先处理了
比如var,function。
先定义好变量,再解析
实现中...
Sorry, something went wrong.
No branches or pull requests
hm....
在实现
async await
的时候遇到的变量提升到底是不是个好东西
上面的代码是不能解释运行的..
因为解析到
func()
的时候,还没有func
这个变量The text was updated successfully, but these errors were encountered: