youzan / show-me-the-code

Home Page:https://showmethecode.work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编辑器输出有误

TinkerDeng opened this issue · comments

var x = 1;
function foo(x, y = function() { x = 2; }) {
var x = 3;
y();
console.log(x);
}

foo() // 应该输出3,编辑器输出2

image

目前的执行会经过babel,确实会存在这个问题

现在运行代码不会经过babel了