Remove old expected.{js,json} files (#7187)
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
function foo() {
|
||||
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "foo";
|
||||
var b = arguments.length > 1 ? arguments[1] : undefined;
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
var x = "outside";
|
||||
|
||||
function outer() {
|
||||
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {
|
||||
return eval("x");
|
||||
};
|
||||
return function () {
|
||||
var x = "inside";
|
||||
return a();
|
||||
}();
|
||||
}
|
||||
|
||||
outer();
|
||||
@@ -1,7 +0,0 @@
|
||||
var Ref = function Ref() {
|
||||
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ++Ref.nextID;
|
||||
babelHelpers.classCallCheck(this, Ref);
|
||||
this.id = id;
|
||||
};
|
||||
|
||||
Ref.nextID = 0;
|
||||
@@ -1,11 +0,0 @@
|
||||
var Ref = function Ref() {
|
||||
var ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Ref;
|
||||
babelHelpers.classCallCheck(this, Ref);
|
||||
this.ref = ref;
|
||||
};
|
||||
|
||||
var X = function X() {
|
||||
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : foo;
|
||||
babelHelpers.classCallCheck(this, X);
|
||||
this.x = x;
|
||||
};
|
||||
@@ -1,10 +0,0 @@
|
||||
var t = function () {
|
||||
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "foo";
|
||||
var f = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
|
||||
return e + " bar " + f;
|
||||
};
|
||||
|
||||
var a = function (e) {
|
||||
var f = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
|
||||
return e + " bar " + f;
|
||||
};
|
||||
@@ -1,13 +0,0 @@
|
||||
function fn(a1) {
|
||||
var a2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 4;
|
||||
|
||||
var _ref = arguments.length > 2 ? arguments[2] : undefined,
|
||||
a3 = _ref.a3,
|
||||
a4 = _ref.a4;
|
||||
|
||||
var a5 = arguments.length > 3 ? arguments[3] : undefined;
|
||||
|
||||
var _ref2 = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {},
|
||||
a6 = _ref2.a6,
|
||||
a7 = _ref2.a7;
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
var a = 1;
|
||||
|
||||
function rest() {
|
||||
var b = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : a;
|
||||
assert.equal(b, 1);
|
||||
}
|
||||
|
||||
rest(undefined, 2);
|
||||
|
||||
function rest2() {
|
||||
var b = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : a;
|
||||
assert.equal(arguments.length <= 1 ? undefined : arguments[1], 2);
|
||||
}
|
||||
|
||||
rest2(undefined, 2);
|
||||
|
||||
function rest3() {
|
||||
var b = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : a;
|
||||
assert.equal(arguments.length <= 1 ? 0 : arguments.length - 1, 1);
|
||||
}
|
||||
|
||||
rest3(undefined, 2);
|
||||
@@ -1,4 +0,0 @@
|
||||
var t = function () {
|
||||
var f = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "foo";
|
||||
return f + " bar";
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
// #3861
|
||||
function t() {
|
||||
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "default";
|
||||
|
||||
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
||||
a = _ref.a,
|
||||
b = _ref.b;
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
||||
args[_key - 2] = arguments[_key];
|
||||
}
|
||||
|
||||
console.log(x, a, b, args);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
var args = 'bar';
|
||||
|
||||
function foo() {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
function first() {
|
||||
var _ref;
|
||||
|
||||
var index = 0;
|
||||
return _ref = index++, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref];
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
let oneOf = function () {
|
||||
for (var _len = arguments.length, nodes = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
nodes[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
if (nodes.length === 1) {
|
||||
return nodes[0];
|
||||
}
|
||||
|
||||
return new OneOfNode(nodes);
|
||||
};
|
||||
@@ -1,12 +0,0 @@
|
||||
function f(a) {
|
||||
var _ref, _ref2, _ref3;
|
||||
|
||||
var b = (_ref = (arguments.length <= 1 ? 0 : arguments.length - 1) - 3 + 1, _ref < 1 || arguments.length <= _ref ? undefined : arguments[_ref]);
|
||||
var c = (_ref2 = (arguments.length <= 1 ? 0 : arguments.length - 1) - 2 + 1, _ref2 < 1 || arguments.length <= _ref2 ? undefined : arguments[_ref2]);
|
||||
var d = (_ref3 = (arguments.length <= 1 ? 0 : arguments.length - 1) - 1 + 1, _ref3 < 1 || arguments.length <= _ref3 ? undefined : arguments[_ref3]);
|
||||
return [a, b, c, d];
|
||||
}
|
||||
|
||||
function f(a) {
|
||||
return void 0;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
function x() {
|
||||
for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
rest[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
arguments;
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
var concat = function () {
|
||||
var x = arguments.length <= 0 ? undefined : arguments[0];
|
||||
var y = arguments.length <= 1 ? undefined : arguments[1];
|
||||
};
|
||||
|
||||
var somefun = function () {
|
||||
var get2ndArg = function (a, b) {
|
||||
var _b = arguments.length <= 2 ? undefined : arguments[2];
|
||||
|
||||
var somef = function (x, y, z) {
|
||||
var _a = arguments.length <= 3 ? undefined : arguments[3];
|
||||
};
|
||||
|
||||
var somefg = function (c, d, e, f) {
|
||||
var _a = arguments.length <= 4 ? undefined : arguments[4];
|
||||
};
|
||||
|
||||
var _d = arguments.length <= 3 ? undefined : arguments[3];
|
||||
};
|
||||
|
||||
var get3rdArg = function () {
|
||||
return arguments.length <= 2 ? undefined : arguments[2];
|
||||
};
|
||||
};
|
||||
|
||||
function demo1() {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return function (i) {
|
||||
return args[i + 0];
|
||||
};
|
||||
}
|
||||
|
||||
var x = function () {
|
||||
if (noNeedToWork) return 0;
|
||||
|
||||
for (var _len2 = arguments.length, rest = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||||
rest[_key2] = arguments[_key2];
|
||||
}
|
||||
|
||||
return rest;
|
||||
};
|
||||
|
||||
var innerclassproperties = function () {
|
||||
var _class, _temp;
|
||||
|
||||
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
||||
args[_key3] = arguments[_key3];
|
||||
}
|
||||
|
||||
return _temp = _class = function _class() {
|
||||
babelHelpers.classCallCheck(this, _class);
|
||||
this.args = args;
|
||||
}, _class.args = args, _temp;
|
||||
};
|
||||
@@ -1,30 +0,0 @@
|
||||
var concat =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref = babelHelpers.asyncToGenerator(function* () {
|
||||
var x = arguments.length <= 0 ? undefined : arguments[0];
|
||||
var y = arguments.length <= 1 ? undefined : arguments[1];
|
||||
});
|
||||
|
||||
return function concat() {
|
||||
return _ref.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
|
||||
var x =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var _ref2 = babelHelpers.asyncToGenerator(function* () {
|
||||
if (noNeedToWork) return 0;
|
||||
|
||||
for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
rest[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return rest;
|
||||
});
|
||||
|
||||
return function x() {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
@@ -1,7 +0,0 @@
|
||||
var deepAssign = function () {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return args = [];
|
||||
};
|
||||
@@ -1,116 +0,0 @@
|
||||
// single reference
|
||||
function r() {
|
||||
if (noNeedToWork) return 0;
|
||||
|
||||
for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
rest[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return rest;
|
||||
} // multiple references
|
||||
|
||||
|
||||
function r() {
|
||||
if (noNeedToWork) return 0;
|
||||
|
||||
for (var _len2 = arguments.length, rest = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||||
rest[_key2] = arguments[_key2];
|
||||
}
|
||||
|
||||
rest;
|
||||
rest;
|
||||
} // multiple nested references
|
||||
|
||||
|
||||
function r() {
|
||||
if (noNeedToWork) return 0;
|
||||
|
||||
for (var _len3 = arguments.length, rest = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
||||
rest[_key3] = arguments[_key3];
|
||||
}
|
||||
|
||||
if (true) {
|
||||
return rest;
|
||||
} else {
|
||||
return rest;
|
||||
}
|
||||
} // deeply nested
|
||||
|
||||
|
||||
function r() {
|
||||
if (true) {
|
||||
for (var _len4 = arguments.length, rest = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
||||
rest[_key4] = arguments[_key4];
|
||||
}
|
||||
|
||||
if (true) {
|
||||
return rest;
|
||||
} else {
|
||||
return rest;
|
||||
}
|
||||
}
|
||||
} // nested reference with root reference
|
||||
|
||||
|
||||
function r() {
|
||||
if (noNeedToWork) return 0;
|
||||
|
||||
for (var _len5 = arguments.length, rest = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
||||
rest[_key5] = arguments[_key5];
|
||||
}
|
||||
|
||||
if (lol) rest;
|
||||
rest;
|
||||
} // nested functions
|
||||
|
||||
|
||||
function a() {
|
||||
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
||||
args[_key6] = arguments[_key6];
|
||||
}
|
||||
|
||||
return function () {
|
||||
function b() {}
|
||||
|
||||
console.log("Shouldn't args be from a's scope?", args);
|
||||
};
|
||||
} // loop
|
||||
|
||||
|
||||
function runQueue(queue) {
|
||||
for (var _len7 = arguments.length, args = new Array(_len7 > 1 ? _len7 - 1 : 0), _key7 = 1; _key7 < _len7; _key7++) {
|
||||
args[_key7 - 1] = arguments[_key7];
|
||||
}
|
||||
|
||||
for (var i = 0; i < queue.length; i++) {
|
||||
queue[i].apply(queue, args);
|
||||
}
|
||||
} // nested loop
|
||||
|
||||
|
||||
function runQueue(queue) {
|
||||
if (foo) {
|
||||
for (var _len8 = arguments.length, args = new Array(_len8 > 1 ? _len8 - 1 : 0), _key8 = 1; _key8 < _len8; _key8++) {
|
||||
args[_key8 - 1] = arguments[_key8];
|
||||
}
|
||||
|
||||
for (var i = 0; i < queue.length; i++) {
|
||||
queue[i].apply(queue, args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function r() {
|
||||
if (noNeedToWork) return 0;
|
||||
|
||||
for (var _len9 = arguments.length, rest = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
||||
rest[_key9] = arguments[_key9];
|
||||
}
|
||||
|
||||
var _x = x;
|
||||
|
||||
var _x2 = babelHelpers.slicedToArray(_x, 1);
|
||||
|
||||
rest[0] = _x2[0];
|
||||
return rest;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
var t = function (f) {
|
||||
var _ref;
|
||||
|
||||
arguments.length <= 1 ? undefined : arguments[1];
|
||||
_ref = (arguments.length <= 1 ? 0 : arguments.length - 1) - 1 + 1, _ref < 1 || arguments.length <= _ref ? undefined : arguments[_ref];
|
||||
};
|
||||
|
||||
function t(f) {
|
||||
for (var _len = arguments.length, items = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||
items[_key - 1] = arguments[_key];
|
||||
}
|
||||
|
||||
items;
|
||||
items[0];
|
||||
items[items.length - 1];
|
||||
}
|
||||
@@ -1,195 +0,0 @@
|
||||
var x = function (foo) {
|
||||
for (var _len = arguments.length, bar = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||
bar[_key - 1] = arguments[_key];
|
||||
}
|
||||
|
||||
console.log(bar);
|
||||
};
|
||||
|
||||
var y = function (foo) {
|
||||
var x = function z(bar) {
|
||||
bar[1] = 5;
|
||||
};
|
||||
};
|
||||
|
||||
var b = function (x, y) {
|
||||
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
||||
args[_key2 - 2] = arguments[_key2];
|
||||
}
|
||||
|
||||
console.log(args[0]);
|
||||
args.pop();
|
||||
console.log(args[1]);
|
||||
};
|
||||
|
||||
var z = function (foo) {
|
||||
for (var _len3 = arguments.length, bar = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
||||
bar[_key3 - 1] = arguments[_key3];
|
||||
}
|
||||
|
||||
var x = function () {
|
||||
bar[1] = 5;
|
||||
};
|
||||
};
|
||||
|
||||
var a = function (foo) {
|
||||
for (var _len4 = arguments.length, bar = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
||||
bar[_key4 - 1] = arguments[_key4];
|
||||
}
|
||||
|
||||
return bar.join(",");
|
||||
};
|
||||
|
||||
var b = function (foo) {
|
||||
var join = "join";
|
||||
|
||||
for (var _len5 = arguments.length, bar = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
||||
bar[_key5 - 1] = arguments[_key5];
|
||||
}
|
||||
|
||||
return bar[join];
|
||||
};
|
||||
|
||||
var b = function () {
|
||||
for (var _len6 = arguments.length, bar = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
||||
bar[_key6] = arguments[_key6];
|
||||
}
|
||||
|
||||
return bar.len;
|
||||
};
|
||||
|
||||
var b = function (foo) {
|
||||
return (arguments.length <= 1 ? 0 : arguments.length - 1) * 2;
|
||||
};
|
||||
|
||||
var b = function (foo, baz) {
|
||||
return arguments.length <= 2 ? 0 : arguments.length - 2;
|
||||
};
|
||||
|
||||
function x() {
|
||||
for (var _len7 = arguments.length, rest = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
||||
rest[_key7] = arguments[_key7];
|
||||
}
|
||||
|
||||
rest[0] = 0;
|
||||
}
|
||||
|
||||
function swap() {
|
||||
for (var _len8 = arguments.length, rest = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
||||
rest[_key8] = arguments[_key8];
|
||||
}
|
||||
|
||||
var _ref = [rest[1], rest[0]];
|
||||
rest[0] = _ref[0];
|
||||
rest[1] = _ref[1];
|
||||
}
|
||||
|
||||
function forIn() {
|
||||
for (var _len9 = arguments.length, rest = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
||||
rest[_key9] = arguments[_key9];
|
||||
}
|
||||
|
||||
for (rest[0] in this) {
|
||||
foo(rest[0]);
|
||||
}
|
||||
}
|
||||
|
||||
function inc() {
|
||||
for (var _len10 = arguments.length, rest = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
|
||||
rest[_key10] = arguments[_key10];
|
||||
}
|
||||
|
||||
++rest[0];
|
||||
}
|
||||
|
||||
function dec() {
|
||||
for (var _len11 = arguments.length, rest = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
|
||||
rest[_key11] = arguments[_key11];
|
||||
}
|
||||
|
||||
--rest[0];
|
||||
}
|
||||
|
||||
function del() {
|
||||
for (var _len12 = arguments.length, rest = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
|
||||
rest[_key12] = arguments[_key12];
|
||||
}
|
||||
|
||||
delete rest[0];
|
||||
}
|
||||
|
||||
function method() {
|
||||
for (var _len13 = arguments.length, rest = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
|
||||
rest[_key13] = arguments[_key13];
|
||||
}
|
||||
|
||||
rest[0]();
|
||||
}
|
||||
|
||||
function newExp() {
|
||||
for (var _len14 = arguments.length, rest = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
|
||||
rest[_key14] = arguments[_key14];
|
||||
}
|
||||
|
||||
new rest[0]();
|
||||
} // In addition to swap() above because at some point someone tried checking
|
||||
// grandparent path for isArrayExpression() to deopt.
|
||||
|
||||
|
||||
function arrayDestructure() {
|
||||
for (var _len15 = arguments.length, rest = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
|
||||
rest[_key15] = arguments[_key15];
|
||||
}
|
||||
|
||||
var _x = x;
|
||||
|
||||
var _x2 = babelHelpers.slicedToArray(_x, 1);
|
||||
|
||||
rest[0] = _x2[0];
|
||||
}
|
||||
|
||||
function forOf() {
|
||||
for (var _len16 = arguments.length, rest = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
|
||||
rest[_key16] = arguments[_key16];
|
||||
}
|
||||
|
||||
var _iteratorNormalCompletion = true;
|
||||
var _didIteratorError = false;
|
||||
var _iteratorError = undefined;
|
||||
|
||||
try {
|
||||
for (var _iterator = this[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
||||
rest[0] = _step.value;
|
||||
;
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError = true;
|
||||
_iteratorError = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
||||
_iterator.return();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError) {
|
||||
throw _iteratorError;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function postfixIncrement() {
|
||||
for (var _len17 = arguments.length, rest = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
|
||||
rest[_key17] = arguments[_key17];
|
||||
}
|
||||
|
||||
rest[0]++;
|
||||
}
|
||||
|
||||
function postfixDecrement() {
|
||||
for (var _len18 = arguments.length, rest = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
|
||||
rest[_key18] = arguments[_key18];
|
||||
}
|
||||
|
||||
rest[0]--;
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
var t = function () {
|
||||
var x = arguments.length <= 0 ? undefined : arguments[0];
|
||||
var y = arguments.length <= 1 ? undefined : arguments[1];
|
||||
};
|
||||
|
||||
function t() {
|
||||
var x = arguments.length <= 0 ? undefined : arguments[0];
|
||||
var y = arguments.length <= 1 ? undefined : arguments[1];
|
||||
}
|
||||
|
||||
function t() {
|
||||
var a = [];
|
||||
|
||||
for (var i = 0; i < arguments.length; i++) {
|
||||
a.push(i);
|
||||
}
|
||||
|
||||
return a;
|
||||
} // https://github.com/babel/babel/pull/2833#issuecomment-166039291
|
||||
|
||||
|
||||
function t() {
|
||||
for (var i = 0; i < arguments.length; i++) {
|
||||
return i < 0 || arguments.length <= i ? undefined : arguments[i];
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
var t = function (f) {
|
||||
var x = f;
|
||||
x = arguments.length <= 1 ? undefined : arguments[1];
|
||||
x = arguments.length <= 2 ? undefined : arguments[2];
|
||||
};
|
||||
|
||||
function t(f) {
|
||||
var x = f;
|
||||
x = arguments.length <= 1 ? undefined : arguments[1];
|
||||
x = arguments.length <= 2 ? undefined : arguments[2];
|
||||
}
|
||||
|
||||
function u(f, g) {
|
||||
var x = f;
|
||||
var y = g;
|
||||
x[12] = arguments.length <= 2 ? undefined : arguments[2];
|
||||
y.prop = arguments.length <= 3 ? undefined : arguments[3];
|
||||
var z = (arguments.length <= 4 ? undefined : arguments[4]) | 0 || 12;
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
function a() {
|
||||
var foo = function () {
|
||||
return bar.apply(void 0, arguments);
|
||||
};
|
||||
|
||||
foo.apply(void 0, arguments);
|
||||
}
|
||||
|
||||
function b() {
|
||||
var foo = function () {
|
||||
return bar.apply(void 0, arguments);
|
||||
};
|
||||
|
||||
foo.apply(void 0, arguments);
|
||||
}
|
||||
|
||||
function c() {
|
||||
var foo = function () {
|
||||
return bar.apply(void 0, arguments);
|
||||
};
|
||||
|
||||
foo([]);
|
||||
}
|
||||
|
||||
function d(thing) {
|
||||
var foo = function () {
|
||||
return bar.apply(void 0, arguments);
|
||||
};
|
||||
|
||||
{
|
||||
var args = thing;
|
||||
foo(thing);
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
function broken(x) {
|
||||
if (true) {
|
||||
var Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
babelHelpers.inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
return babelHelpers.possibleConstructorReturn(this, (Foo.__proto__ || Object.getPrototypeOf(Foo)).apply(this, arguments));
|
||||
}
|
||||
|
||||
return Foo;
|
||||
}(Bar);
|
||||
|
||||
for (var _len = arguments.length, foo = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||
foo[_key - 1] = arguments[_key];
|
||||
}
|
||||
|
||||
return hello.apply(void 0, foo);
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
// optimisation
|
||||
function foo() {
|
||||
foo.apply(void 0, arguments);
|
||||
} // deoptimisation
|
||||
|
||||
|
||||
function foo(a) {
|
||||
for (var _len = arguments.length, b = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||
b[_key - 1] = arguments[_key];
|
||||
}
|
||||
|
||||
foo.apply(void 0, b);
|
||||
}
|
||||
|
||||
function foo() {
|
||||
for (var _len2 = arguments.length, b = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||||
b[_key2] = arguments[_key2];
|
||||
}
|
||||
|
||||
foo.apply(void 0, [1].concat(b));
|
||||
}
|
||||
|
||||
function foo() {
|
||||
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
||||
args[_key3] = arguments[_key3];
|
||||
}
|
||||
|
||||
args.pop();
|
||||
foo.apply(void 0, args);
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var _copyPaste = require("./copyPaste");
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
var Thing =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function Thing() {
|
||||
_classCallCheck(this, Thing);
|
||||
}
|
||||
|
||||
_createClass(Thing, [{
|
||||
key: "handleCopySomething",
|
||||
value: function handleCopySomething() {
|
||||
(0, _copyPaste.copy)();
|
||||
}
|
||||
}, {
|
||||
key: "completelyUnrelated",
|
||||
value: function completelyUnrelated() {
|
||||
var copy = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 123;
|
||||
}
|
||||
}]);
|
||||
|
||||
return Thing;
|
||||
}();
|
||||
@@ -1,62 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var _args = _interopRequireDefault(require("utils/url/args"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
|
||||
|
||||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
var App =
|
||||
/*#__PURE__*/
|
||||
function (_Component) {
|
||||
_inherits(App, _Component);
|
||||
|
||||
function App() {
|
||||
var _ref;
|
||||
|
||||
var _temp, _this;
|
||||
|
||||
_classCallCheck(this, App);
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return _possibleConstructorReturn(_this, (_temp = _this = _possibleConstructorReturn(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), Object.defineProperty(_assertThisInitialized(_this), "exportType", {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
value: ''
|
||||
}), _temp));
|
||||
}
|
||||
|
||||
_createClass(App, [{
|
||||
key: "componentDidMount",
|
||||
value: function componentDidMount() {
|
||||
this.exportType = _args.default.get('type', window.location.href);
|
||||
}
|
||||
}]);
|
||||
|
||||
return App;
|
||||
}(Component);
|
||||
|
||||
exports.default = App;
|
||||
@@ -1,9 +0,0 @@
|
||||
const a = 'bar';
|
||||
|
||||
function foo() {
|
||||
for (var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
a[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return a;
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
function test(_temp) {
|
||||
var _ref = _temp === void 0 ? {} : _temp,
|
||||
b = _ref.a;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
function t(_temp) {
|
||||
var _ref = _temp === void 0 ? [1, 2, 3] : _temp,
|
||||
_ref2 = babelHelpers.slicedToArray(_ref, 3),
|
||||
a = _ref2[2];
|
||||
|
||||
return a;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
export function transformFileSync(filename, opts) {
|
||||
if (opts === void 0) {
|
||||
opts = {};
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
var t = function (e, f) {
|
||||
if (e === void 0) {
|
||||
e = "foo";
|
||||
}
|
||||
|
||||
if (f === void 0) {
|
||||
f = 5;
|
||||
}
|
||||
|
||||
return e + " bar " + f;
|
||||
};
|
||||
|
||||
var a = function (e, f) {
|
||||
if (f === void 0) {
|
||||
f = 5;
|
||||
}
|
||||
|
||||
return e + " bar " + f;
|
||||
};
|
||||
@@ -1,12 +0,0 @@
|
||||
function fn(a1, a2, _ref, a5, _temp) {
|
||||
if (a2 === void 0) {
|
||||
a2 = 4;
|
||||
}
|
||||
|
||||
var a3 = _ref.a3,
|
||||
a4 = _ref.a4;
|
||||
|
||||
var _ref2 = _temp === void 0 ? {} : _temp,
|
||||
a6 = _ref2.a6,
|
||||
a7 = _ref2.a7;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
var t = function (f) {
|
||||
if (f === void 0) {
|
||||
f = "foo";
|
||||
}
|
||||
|
||||
return f + " bar";
|
||||
};
|
||||
@@ -1,15 +0,0 @@
|
||||
// #3861
|
||||
function t(x, _ref) {
|
||||
if (x === void 0) {
|
||||
x = "default";
|
||||
}
|
||||
|
||||
var a = _ref.a,
|
||||
b = _ref.b;
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
||||
args[_key - 2] = arguments[_key];
|
||||
}
|
||||
|
||||
console.log(x, a, b, args);
|
||||
}
|
||||
Reference in New Issue
Block a user