这段代码
let test = {
method () {
// ...
}
}
会被转译为
"use strict";
var test = {
method: function method() {
// ...
}
};
那么 function method () 有方法调用吗?如果没有,何不转译成这样:
"use strict";
var test = {
method: function () {
// ...
}
};
严格模式下,就不要说什么 callee 了