fix remaining issues in estree port
This commit is contained in:
@@ -50,7 +50,7 @@ function four() {
|
||||
four({ foo: "foo" });
|
||||
|
||||
function five(obj) {
|
||||
var fn = function () {
|
||||
var fn = function fn() {
|
||||
return obj.arguments[0].foo + "bar";
|
||||
};
|
||||
return fn();
|
||||
@@ -58,7 +58,7 @@ function five(obj) {
|
||||
five({ arguments: ["foo"] });
|
||||
|
||||
function six(obj) {
|
||||
var fn = function () {
|
||||
var fn = function fn() {
|
||||
var fn2 = function fn2() {
|
||||
return arguments[0];
|
||||
};
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
let x = [0];
|
||||
for (let x of x) {
|
||||
assert.equal(x, 0);
|
||||
}
|
||||
assert.deepEqual(x, [0]);
|
||||
@@ -1,7 +1,4 @@
|
||||
"use strict";
|
||||
|
||||
var _objectDestructuringEmpty = function (obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); };
|
||||
|
||||
var _ref = null;
|
||||
|
||||
_objectDestructuringEmpty(_ref);
|
||||
babelHelpers.objectDestructuringEmpty(_ref);
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
var _objectWithoutProperties = function (obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; };
|
||||
|
||||
var x = _objectWithoutProperties(z, []);
|
||||
|
||||
var x = babelHelpers.objectWithoutProperties(z, []);
|
||||
var x = z.x;
|
||||
|
||||
var y = _objectWithoutProperties(z, ["x"]);
|
||||
var y = babelHelpers.objectWithoutProperties(z, ["x"]);
|
||||
|
||||
(function (_ref) {
|
||||
var x = _ref.x;
|
||||
|
||||
var y = _objectWithoutProperties(_ref, ["x"]);
|
||||
var y = babelHelpers.objectWithoutProperties(_ref, ["x"]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user