fix remaining issues in estree port

This commit is contained in:
Sebastian McKenzie
2015-03-19 02:59:44 +11:00
parent 0e68b6ca11
commit 4ac1a856ae
9 changed files with 36 additions and 33 deletions

View File

@@ -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];
};

View File

@@ -1,5 +0,0 @@
let x = [0];
for (let x of x) {
assert.equal(x, 0);
}
assert.deepEqual(x, [0]);

View File

@@ -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);

View File

@@ -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"]);
});