Home Page:https://showmethecode.work
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
TinkerDeng opened this issue 5 years ago · comments
var x = 1; function foo(x, y = function() { x = 2; }) { var x = 3; y(); console.log(x); }
foo() // 应该输出3,编辑器输出2
目前的执行会经过babel,确实会存在这个问题
现在运行代码不会经过babel了