make transformation tests compare output instead of ast
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
|
||||
var Test = function Test() {
|
||||
arr.map(x => x * x);
|
||||
};
|
||||
};
|
||||
@@ -1,7 +1,7 @@
|
||||
class Test {
|
||||
constructor() {
|
||||
arr.map(function(x) {
|
||||
constructor(){
|
||||
arr.map(function (x) {
|
||||
return x * x;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
function add() {
|
||||
var _arguments = arguments;
|
||||
|
||||
return [1, 2, 3].map(function(i) {
|
||||
return [1, 2, 3].map(function (i) {
|
||||
return i * _arguments[0];
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
var seattlers = function() {
|
||||
var seattlers = (function () {
|
||||
var _arr = [];
|
||||
|
||||
countries.forEach(function(customers) {
|
||||
customers.forEach(function(c) {
|
||||
countries.forEach(function (customers) {
|
||||
customers.forEach(function (c) {
|
||||
if (c.city == "Seattle") {
|
||||
_arr.push({
|
||||
name: c.name,
|
||||
@@ -15,4 +14,4 @@ var seattlers = function() {
|
||||
});
|
||||
|
||||
return _arr;
|
||||
}();
|
||||
})();
|
||||
@@ -1,13 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
var arr = function() {
|
||||
var arr = (function () {
|
||||
var _arr = [];
|
||||
|
||||
"abcdefgh".split("").forEach(function(x) {
|
||||
"12345678".split("").forEach(function(y) {
|
||||
"abcdefgh".split("").forEach(function (x) {
|
||||
"12345678".split("").forEach(function (y) {
|
||||
_arr.push(x + y);
|
||||
});
|
||||
});
|
||||
|
||||
return _arr;
|
||||
}();
|
||||
})();
|
||||
@@ -1,8 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var seattlers = customers.filter(function(c) {
|
||||
var seattlers = customers.filter(function (c) {
|
||||
return c.city == "Seattle";
|
||||
}).map(function(c) {
|
||||
}).map(function (c) {
|
||||
return {
|
||||
name: c.name,
|
||||
age: c.age
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var arr = [1, 2, 3].map(function(i) {
|
||||
var arr = [1, 2, 3].map(function (i) {
|
||||
return i * i;
|
||||
});
|
||||
@@ -2,12 +2,9 @@
|
||||
|
||||
function add() {
|
||||
var _this = this;
|
||||
|
||||
return [1, 2, 3].map(function(i) {
|
||||
return [1, 2, 3].map(function (i) {
|
||||
return i * _this.multiplier;
|
||||
});
|
||||
}
|
||||
|
||||
add.call({
|
||||
multiplier: 5
|
||||
});
|
||||
add.call({ multiplier: 5 });
|
||||
@@ -2,84 +2,63 @@
|
||||
|
||||
function one() {
|
||||
var _arguments = arguments;
|
||||
|
||||
var inner = function() {
|
||||
var inner = function () {
|
||||
return _arguments;
|
||||
};
|
||||
|
||||
return [].slice.call(inner());
|
||||
}
|
||||
|
||||
one(1, 2);
|
||||
|
||||
function two() {
|
||||
var _arguments2 = arguments;
|
||||
|
||||
var inner = function() {
|
||||
var inner = function () {
|
||||
return _arguments2;
|
||||
};
|
||||
|
||||
var another = function() {
|
||||
var another = function () {
|
||||
var _arguments3 = arguments;
|
||||
|
||||
var inner2 = function() {
|
||||
var inner2 = function () {
|
||||
return _arguments3;
|
||||
};
|
||||
};
|
||||
|
||||
return [].slice.call(inner());
|
||||
}
|
||||
|
||||
two(1, 2);
|
||||
|
||||
function three() {
|
||||
var _arguments4 = arguments;
|
||||
|
||||
var fn = function() {
|
||||
var fn = function () {
|
||||
return _arguments4[0] + "bar";
|
||||
};
|
||||
|
||||
return fn();
|
||||
}
|
||||
|
||||
three("foo");
|
||||
|
||||
function four() {
|
||||
var _arguments5 = arguments;
|
||||
|
||||
var fn = function() {
|
||||
var fn = function () {
|
||||
return _arguments5[0].foo + "bar";
|
||||
};
|
||||
|
||||
return fn();
|
||||
}
|
||||
|
||||
four({
|
||||
foo: "foo"
|
||||
});
|
||||
four({ foo: "foo" });
|
||||
|
||||
function five(obj) {
|
||||
var fn = function() {
|
||||
var fn = function () {
|
||||
return obj.arguments[0].foo + "bar";
|
||||
};
|
||||
|
||||
return fn();
|
||||
}
|
||||
|
||||
five({
|
||||
arguments: ["foo"]
|
||||
});
|
||||
five({ arguments: ["foo"] });
|
||||
|
||||
function six(obj) {
|
||||
var fn = function() {
|
||||
var fn2 = function() {
|
||||
var fn = function () {
|
||||
var fn2 = function () {
|
||||
return arguments[0];
|
||||
};
|
||||
|
||||
return fn2("foobar");
|
||||
};
|
||||
|
||||
return fn();
|
||||
}
|
||||
|
||||
six();
|
||||
@@ -5,4 +5,4 @@ var some = function (count) {
|
||||
console.log("count", count);
|
||||
};
|
||||
|
||||
some();
|
||||
some();
|
||||
@@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
var a = function (_ref) {
|
||||
var target = _ref.target;
|
||||
return console.log(target);
|
||||
};
|
||||
a({ target: "I am a target" });
|
||||
a({ target: "I am a target" });
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var t = function() {
|
||||
var t = function () {
|
||||
return 5 + 5;
|
||||
};
|
||||
@@ -1,2 +1,3 @@
|
||||
"use strict";
|
||||
var t = function() {};
|
||||
|
||||
var t = function () {};
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function(x) {
|
||||
arr.map(function (x) {
|
||||
return x * x;
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function(i) {
|
||||
arr.map(function (i) {
|
||||
return i + 1;
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var t = function(i, x) {
|
||||
var t = function (i, x) {
|
||||
return i * x;
|
||||
};
|
||||
@@ -1,18 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
init: function() {
|
||||
var _this = this;
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
MongoClient.connect(config.mongodb, function(err, db) {
|
||||
if (err) {
|
||||
return reject(err);
|
||||
}
|
||||
|
||||
_this.db = db;
|
||||
resolve(_this);
|
||||
});
|
||||
module.exports = { init: function () {
|
||||
var _this = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
MongoClient.connect(config.mongodb, function (err, db) {
|
||||
if (err) {
|
||||
return reject(err);
|
||||
}
|
||||
_this.db = db;
|
||||
resolve(_this);
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
} };
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var t = function(i) {
|
||||
var t = function (i) {
|
||||
return i * 5;
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var t = function(i) {
|
||||
var t = function (i) {
|
||||
return i * 5;
|
||||
};
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
nums.forEach(function(v) {
|
||||
nums.forEach(function (v) {
|
||||
if (v % 5 === 0) {
|
||||
fives.push(v);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
var _this = this;
|
||||
|
||||
var t = function(x) {
|
||||
var _this = this;
|
||||
var t = function (x) {
|
||||
return _this.x + x;
|
||||
};
|
||||
@@ -1,60 +1,52 @@
|
||||
"use strict";
|
||||
|
||||
var _slice = Array.prototype.slice;
|
||||
|
||||
var _classProps = function (child, staticProps, instanceProps) {
|
||||
if (staticProps) Object.defineProperties(child, staticProps);
|
||||
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
|
||||
};
|
||||
|
||||
var _extends = function (child, parent) {
|
||||
child.prototype = Object.create(parent.prototype, {
|
||||
constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
child.prototype = Object.create(parent.prototype, { constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
} });
|
||||
child.__proto__ = parent;
|
||||
};
|
||||
|
||||
var Test = function(Foo) {
|
||||
var Test = (function (Foo) {
|
||||
var Test = function Test() {
|
||||
woops.super.test();
|
||||
Foo.call(this);
|
||||
Foo.prototype.test.call(this);
|
||||
foob(Foo);
|
||||
|
||||
Foo.call.apply(Foo, [this].concat(_slice.call(arguments)));
|
||||
Foo.call.apply(Foo, [this, "test"].concat(_slice.call(arguments)));
|
||||
|
||||
Foo.prototype.test.call.apply(Foo.prototype, [this].concat(_slice.call(arguments)));
|
||||
Foo.prototype.test.call.apply(Foo.prototype, [this, "test"].concat(_slice.call(arguments)));
|
||||
};
|
||||
|
||||
_extends(Test, Foo);
|
||||
|
||||
_classProps(Test, {
|
||||
foo: {
|
||||
writable: true,
|
||||
|
||||
value: function() {
|
||||
Foo.foo.call(this);
|
||||
Foo.foo.call.apply(Foo.foo, [this].concat(_slice.call(arguments)));
|
||||
Foo.foo.call.apply(Foo.foo, [this, "test"].concat(_slice.call(arguments)));
|
||||
}
|
||||
_classProps(Test, { foo: {
|
||||
writable: true,
|
||||
value: function () {
|
||||
Foo.foo.call(this);
|
||||
Foo.foo.call.apply(Foo.foo, [this].concat(_slice.call(arguments)));
|
||||
Foo.foo.call.apply(Foo.foo, [this, "test"].concat(_slice.call(arguments)));
|
||||
}
|
||||
}, {
|
||||
test: {
|
||||
writable: true,
|
||||
|
||||
value: function() {
|
||||
Foo.prototype.test.call(this);
|
||||
Foo.prototype.test.call.apply(Foo.prototype.test, [this].concat(_slice.call(arguments)));
|
||||
Foo.prototype.test.call.apply(Foo.prototype.test, [this, "test"].concat(_slice.call(arguments)));
|
||||
}
|
||||
} }, { test: {
|
||||
writable: true,
|
||||
value: function () {
|
||||
Foo.prototype.test.call(this);
|
||||
Foo.prototype.test.call.apply(Foo.prototype.test, [this].concat(_slice.call(arguments)));
|
||||
Foo.prototype.test.call.apply(Foo.prototype.test, [this, "test"].concat(_slice.call(arguments)));
|
||||
}
|
||||
});
|
||||
} });
|
||||
|
||||
return Test;
|
||||
}(Foo);
|
||||
})(Foo);
|
||||
@@ -1,19 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
var _extends = function (child, parent) {
|
||||
child.prototype = Object.create(parent.prototype, {
|
||||
constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
child.prototype = Object.create(parent.prototype, { constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
} });
|
||||
child.__proto__ = parent;
|
||||
};
|
||||
|
||||
var Test = function(Foo) {
|
||||
var Test = (function (Foo) {
|
||||
var Test = function Test() {
|
||||
Foo.prototype.test;
|
||||
Foo.prototype.test.whatever;
|
||||
@@ -22,4 +19,4 @@ var Test = function(Foo) {
|
||||
_extends(Test, Foo);
|
||||
|
||||
return Test;
|
||||
}(Foo);
|
||||
})(Foo);
|
||||
@@ -6,19 +6,16 @@ var _classProps = function (child, staticProps, instanceProps) {
|
||||
};
|
||||
|
||||
var _extends = function (child, parent) {
|
||||
child.prototype = Object.create(parent.prototype, {
|
||||
constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
child.prototype = Object.create(parent.prototype, { constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
} });
|
||||
child.__proto__ = parent;
|
||||
};
|
||||
|
||||
var Test = function(Foo) {
|
||||
var Test = (function (Foo) {
|
||||
var Test = function Test() {
|
||||
Foo.prototype.test.whatever();
|
||||
Foo.prototype.test.call(this);
|
||||
@@ -26,15 +23,12 @@ var Test = function(Foo) {
|
||||
|
||||
_extends(Test, Foo);
|
||||
|
||||
_classProps(Test, {
|
||||
test: {
|
||||
writable: true,
|
||||
|
||||
value: function() {
|
||||
return Foo.wow.call(this);
|
||||
}
|
||||
_classProps(Test, { test: {
|
||||
writable: true,
|
||||
value: function () {
|
||||
return Foo.wow.call(this);
|
||||
}
|
||||
}, null);
|
||||
} });
|
||||
|
||||
return Test;
|
||||
}(Foo);
|
||||
})(Foo);
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
var _extends = function (child, parent) {
|
||||
child.prototype = Object.create(parent.prototype, {
|
||||
constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
child.prototype = Object.create(parent.prototype, { constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
} });
|
||||
child.__proto__ = parent;
|
||||
};
|
||||
|
||||
@@ -17,7 +14,7 @@ var Test = function Test() {
|
||||
this.state = "test";
|
||||
};
|
||||
|
||||
var Foo = function(Bar) {
|
||||
var Foo = (function (Bar) {
|
||||
var Foo = function Foo() {
|
||||
this.state = "test";
|
||||
};
|
||||
@@ -25,4 +22,4 @@ var Foo = function(Bar) {
|
||||
_extends(Foo, Bar);
|
||||
|
||||
return Foo;
|
||||
}(Bar);
|
||||
})(Bar);
|
||||
@@ -5,20 +5,17 @@ var _classProps = function (child, staticProps, instanceProps) {
|
||||
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
|
||||
};
|
||||
|
||||
var Test = function() {
|
||||
var Test = (function () {
|
||||
var Test = function Test() {};
|
||||
|
||||
_classProps(Test, null, {
|
||||
test: {
|
||||
get: function() {
|
||||
return 5 + 5;
|
||||
},
|
||||
|
||||
set: function(val) {
|
||||
this._test = val;
|
||||
}
|
||||
_classProps(Test, null, { test: {
|
||||
get: function () {
|
||||
return 5 + 5;
|
||||
},
|
||||
set: function (val) {
|
||||
this._test = val;
|
||||
}
|
||||
});
|
||||
} });
|
||||
|
||||
return Test;
|
||||
}();
|
||||
})();
|
||||
@@ -5,16 +5,12 @@ var _classProps = function (child, staticProps, instanceProps) {
|
||||
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
|
||||
};
|
||||
|
||||
var Test = function() {
|
||||
var Test = (function () {
|
||||
var Test = function Test() {};
|
||||
|
||||
_classProps(Test, null, {
|
||||
test: {
|
||||
get: function() {
|
||||
return 5 + 5;
|
||||
}
|
||||
}
|
||||
});
|
||||
_classProps(Test, null, { test: { get: function () {
|
||||
return 5 + 5;
|
||||
} } });
|
||||
|
||||
return Test;
|
||||
}();
|
||||
})();
|
||||
@@ -5,18 +5,15 @@ var _classProps = function (child, staticProps, instanceProps) {
|
||||
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
|
||||
};
|
||||
|
||||
var Test = function() {
|
||||
var Test = (function () {
|
||||
var Test = function Test() {};
|
||||
|
||||
_classProps(Test, null, {
|
||||
test: {
|
||||
writable: true,
|
||||
|
||||
value: function() {
|
||||
return 5 + 5;
|
||||
}
|
||||
_classProps(Test, null, { test: {
|
||||
writable: true,
|
||||
value: function () {
|
||||
return 5 + 5;
|
||||
}
|
||||
});
|
||||
} });
|
||||
|
||||
return Test;
|
||||
}();
|
||||
})();
|
||||
@@ -5,16 +5,12 @@ var _classProps = function (child, staticProps, instanceProps) {
|
||||
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
|
||||
};
|
||||
|
||||
var Test = function() {
|
||||
var Test = (function () {
|
||||
var Test = function Test() {};
|
||||
|
||||
_classProps(Test, null, {
|
||||
test: {
|
||||
set: function(val) {
|
||||
this._test = val;
|
||||
}
|
||||
}
|
||||
});
|
||||
_classProps(Test, null, { test: { set: function (val) {
|
||||
this._test = val;
|
||||
} } });
|
||||
|
||||
return Test;
|
||||
}();
|
||||
})();
|
||||
@@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
var Test = function Test() {};
|
||||
var Test = function Test() {};
|
||||
@@ -1,25 +1,27 @@
|
||||
"use strict";
|
||||
|
||||
var _classProps = function (child, staticProps, instanceProps) {
|
||||
if (staticProps) Object.defineProperties(child, staticProps);
|
||||
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
|
||||
};
|
||||
|
||||
var BaseView = function BaseView() {
|
||||
this.autoRender = true;
|
||||
};
|
||||
|
||||
var BaseView = function() {
|
||||
var BaseView = function () {
|
||||
this.autoRender = true;
|
||||
};
|
||||
|
||||
var BaseView = (function () {
|
||||
var _class2 = function () {};
|
||||
|
||||
var BaseView = function() {
|
||||
var _class2 = function() {};
|
||||
|
||||
Object.defineProperties(_class2.prototype, {
|
||||
foo: {
|
||||
writable: true,
|
||||
value: function() {
|
||||
this.autoRender = true;
|
||||
}
|
||||
_classProps(_class2, null, { foo: {
|
||||
writable: true,
|
||||
value: function () {
|
||||
this.autoRender = true;
|
||||
}
|
||||
});
|
||||
} });
|
||||
|
||||
return _class2;
|
||||
}();
|
||||
})();
|
||||
|
||||
@@ -5,20 +5,19 @@ var _classProps = function (child, staticProps, instanceProps) {
|
||||
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
|
||||
};
|
||||
|
||||
var A = function() {
|
||||
var A = (function () {
|
||||
var A = function A() {};
|
||||
|
||||
_classProps(A, {
|
||||
a: {
|
||||
writable: true,
|
||||
value: function() {}
|
||||
value: function () {}
|
||||
},
|
||||
|
||||
b: {
|
||||
get: function() {},
|
||||
set: function(b) {}
|
||||
get: function () {},
|
||||
set: function (b) {}
|
||||
}
|
||||
}, null);
|
||||
});
|
||||
|
||||
return A;
|
||||
}();
|
||||
})();
|
||||
|
||||
@@ -1,19 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
var _extends = function (child, parent) {
|
||||
child.prototype = Object.create(parent.prototype, {
|
||||
constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
child.prototype = Object.create(parent.prototype, { constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
} });
|
||||
child.__proto__ = parent;
|
||||
};
|
||||
|
||||
var BaseController = function(Chaplin) {
|
||||
var BaseController = (function (Chaplin) {
|
||||
var BaseController = function BaseController() {
|
||||
Chaplin.Controller.apply(this, arguments);
|
||||
};
|
||||
@@ -21,9 +18,8 @@ var BaseController = function(Chaplin) {
|
||||
_extends(BaseController, Chaplin.Controller);
|
||||
|
||||
return BaseController;
|
||||
}(Chaplin);
|
||||
|
||||
var BaseController2 = function(Chaplin) {
|
||||
})(Chaplin);
|
||||
var BaseController2 = (function (Chaplin) {
|
||||
var BaseController2 = function BaseController2() {
|
||||
Chaplin.Controller.Another.apply(this, arguments);
|
||||
};
|
||||
@@ -31,4 +27,4 @@ var BaseController2 = function(Chaplin) {
|
||||
_extends(BaseController2, Chaplin.Controller.Another);
|
||||
|
||||
return BaseController2;
|
||||
}(Chaplin);
|
||||
})(Chaplin);
|
||||
@@ -1,3 +1,3 @@
|
||||
class Q extends function() {} {
|
||||
|
||||
class Q extends function () {} {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,19 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
var _extends = function (child, parent) {
|
||||
child.prototype = Object.create(parent.prototype, {
|
||||
constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
child.prototype = Object.create(parent.prototype, { constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
} });
|
||||
child.__proto__ = parent;
|
||||
};
|
||||
|
||||
var Q = function(_ref) {
|
||||
var Q = (function (_ref) {
|
||||
var Q = function Q() {
|
||||
_ref.apply(this, arguments);
|
||||
};
|
||||
@@ -21,4 +18,4 @@ var Q = function(_ref) {
|
||||
_extends(Q, _ref);
|
||||
|
||||
return Q;
|
||||
}(function() {});
|
||||
})(function () {});
|
||||
@@ -1,19 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
var _extends = function (child, parent) {
|
||||
child.prototype = Object.create(parent.prototype, {
|
||||
constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
child.prototype = Object.create(parent.prototype, { constructor: {
|
||||
value: child,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
} });
|
||||
child.__proto__ = parent;
|
||||
};
|
||||
|
||||
var Test = function(Foo) {
|
||||
var Test = (function (Foo) {
|
||||
var Test = function Test() {
|
||||
Foo.apply(this, arguments);
|
||||
};
|
||||
@@ -21,4 +18,4 @@ var Test = function(Foo) {
|
||||
_extends(Test, Foo);
|
||||
|
||||
return Test;
|
||||
}(Foo);
|
||||
})(Foo);
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
var Test = function Test() {
|
||||
Function.prototype.hasOwnProperty.call(this, "test");
|
||||
};
|
||||
};
|
||||
@@ -1,6 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
wow;
|
||||
|
||||
/*
|
||||
um yeah lol
|
||||
*/
|
||||
test.wow();
|
||||
|
||||
test.wow();
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
wow;
|
||||
// um yeah lol
|
||||
test.wow();
|
||||
test.wow();
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
foo(function(_ref) {
|
||||
foo((function (_ref) {
|
||||
_ref[bar] = "foobar";
|
||||
return _ref;
|
||||
}({}));
|
||||
})({}));
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
foo = function(_foo) {
|
||||
foo = (function (_foo) {
|
||||
_foo[bar] = "foobar";
|
||||
return _foo;
|
||||
}({});
|
||||
})({});
|
||||
@@ -1,9 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var obj = function(_obj) {
|
||||
_obj[foobar] = function() {
|
||||
var obj = (function (_obj) {
|
||||
_obj[foobar] = function () {
|
||||
return "foobar";
|
||||
};
|
||||
|
||||
return _obj;
|
||||
}({});
|
||||
})({});
|
||||
@@ -1,10 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
var obj = function(_obj) {
|
||||
var obj = (function (_obj) {
|
||||
_obj["x" + foo] = "heh";
|
||||
_obj["y" + bar] = "noo";
|
||||
return _obj;
|
||||
}({
|
||||
})({
|
||||
foo: "foo",
|
||||
bar: "bar"
|
||||
});
|
||||
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
var obj = function(_obj) {
|
||||
var obj = (function (_obj) {
|
||||
_obj["x" + foo] = "heh";
|
||||
_obj["y" + bar] = "noo";
|
||||
return _obj;
|
||||
}({});
|
||||
})({});
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
var obj = function(_obj) {
|
||||
var obj = (function (_obj) {
|
||||
_obj["x" + foo] = "heh";
|
||||
return _obj;
|
||||
}({});
|
||||
})({});
|
||||
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
var _this = this;
|
||||
|
||||
var obj = function(_obj) {
|
||||
var _this = this;
|
||||
var obj = (function (_obj) {
|
||||
_obj["x" + _this.foo] = "heh";
|
||||
return _obj;
|
||||
}({});
|
||||
})({});
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
var foo = function(_foo) {
|
||||
var foo = (function (_foo) {
|
||||
_foo[bar] = "foobar";
|
||||
return _foo;
|
||||
}({});
|
||||
})({});
|
||||
@@ -1,23 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
var _ref = [1, 2];
|
||||
var _a = _ref[0];
|
||||
var _b = _ref[1];
|
||||
var _ref2 = [3, 4];
|
||||
var _c = _ref2[0];
|
||||
var _d = _ref2[1];
|
||||
|
||||
var _ref3 = {
|
||||
e: 5,
|
||||
f: 6
|
||||
};
|
||||
|
||||
var _e = _ref3.e;
|
||||
var _f = _ref3.f;
|
||||
|
||||
var _ref4 = {
|
||||
a: 7,
|
||||
b: 8
|
||||
};
|
||||
|
||||
var _g = _ref4.a;
|
||||
var _h = _ref4.b;
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _MULTIPLIER = 5;
|
||||
|
||||
for (var i in arr) {
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
var t = function(t, f) {
|
||||
if (f === undefined)
|
||||
f = 5;
|
||||
|
||||
if (t === undefined)
|
||||
t = "foo";
|
||||
|
||||
var t = function (t, f) {
|
||||
if (f === undefined) f = 5;
|
||||
if (t === undefined) t = "foo";
|
||||
return t + " bar " + f;
|
||||
};
|
||||
|
||||
var a = function(t, f) {
|
||||
if (f === undefined)
|
||||
f = 5;
|
||||
|
||||
var a = function (t, f) {
|
||||
if (f === undefined) f = 5;
|
||||
return t + " bar " + f;
|
||||
};
|
||||
@@ -1,8 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
var t = function(t) {
|
||||
if (t === undefined)
|
||||
t = "foo";
|
||||
|
||||
var t = function (t) {
|
||||
if (t === undefined) t = "foo";
|
||||
return t + " bar";
|
||||
};
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _ref = ["hello", [", ", "junk"], ["world"]];
|
||||
var a = _ref[0];
|
||||
var b = _ref[1][0];
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _ref = f();
|
||||
a = _ref[0];
|
||||
b = _ref[1];
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _ref = ["foo", "hello", [", ", "junk"], ["world"]];
|
||||
var a = _ref[1];
|
||||
var b = _ref[2][0];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
for (var _iterator = this.test.expectation.registers[Symbol.iterator](), _step; !(_step = _iterator.next()).done; ) {
|
||||
for (var _iterator = this.test.expectation.registers[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
|
||||
var _ref = _step.value;
|
||||
var name = _ref[0];
|
||||
var before = _ref[1];
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _ref = [1, 2];
|
||||
this.foo = _ref[0];
|
||||
this.bar = _ref[1];
|
||||
this.bar = _ref[1];
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var x1 = rect.topLeft[0];
|
||||
var y1 = rect.topLeft[1];
|
||||
var x2 = rect.bottomRight[0];
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var x = coords.x;
|
||||
var y = coords.y;
|
||||
var foo = "bar";
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var x1 = rect.topLeft.x;
|
||||
var y1 = rect.topLeft.y;
|
||||
var x2 = rect.bottomRight.x;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
|
||||
var x = coords.x;
|
||||
var y = coords.y;
|
||||
@@ -18,7 +18,7 @@ console.log(unpackObject({
|
||||
author: "author"
|
||||
}));
|
||||
|
||||
var unpackArray = function(_ref3, _ref4) {
|
||||
var unpackArray = function (_ref3, _ref4) {
|
||||
var a = _ref3[0];
|
||||
var b = _ref3[1];
|
||||
var c = _ref3[2];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done; ) {
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
|
||||
i = _step.value;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done; ) {
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
|
||||
var _i = _step.value;
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done; ) {
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
|
||||
var i = _step.value;
|
||||
}
|
||||
|
||||
for (var _iterator2 = numbers[Symbol.iterator](), _step2; !(_step2 = _iterator2.next()).done; ) {
|
||||
for (var _iterator2 = numbers[Symbol.iterator](), _step2; !(_step2 = _iterator2.next()).done;) {
|
||||
var i = _step2.value;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done; ) {
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
|
||||
var i = _step.value;
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
/** @jsx CUSTOM_DOM */
|
||||
|
||||
"use strict";
|
||||
|
||||
CUSTOM_DOM.a(null);
|
||||
CUSTOM_DOM.a(null);
|
||||
@@ -1,2 +1,3 @@
|
||||
"use strict";
|
||||
X(null, null);
|
||||
|
||||
X(null, null);
|
||||
@@ -1,7 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
X({
|
||||
"data-prop": (x ? Y({
|
||||
prop: 2
|
||||
}) : Z(null, "\n"))
|
||||
});
|
||||
X({ "data-prop": x ? Y({ prop: 2 }) : Z(null, "\n") });
|
||||
@@ -1,8 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
X(null, a);
|
||||
|
||||
X(null, a, " ", b);
|
||||
|
||||
X({
|
||||
prop: a,
|
||||
yes: true
|
||||
});
|
||||
});
|
||||
@@ -1,2 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
React.DOM.a(null);
|
||||
@@ -1,2 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
Test.X(null);
|
||||
@@ -1,6 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
X(null);
|
||||
|
||||
X({
|
||||
prop: "1"
|
||||
});
|
||||
X({ prop: "1" });
|
||||
@@ -1,2 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
X(null);
|
||||
@@ -1,9 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
X({
|
||||
prop: "2"
|
||||
}, Y(null));
|
||||
X({ prop: "2" }, Y(null));
|
||||
|
||||
X({
|
||||
prop: "2"
|
||||
}, Y(null), Z(null));
|
||||
X({ prop: "2" }, Y(null), Z(null));
|
||||
@@ -1,5 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
X(null, " ");
|
||||
|
||||
X(null, "\n");
|
||||
|
||||
X(null, "\n string\n");
|
||||
|
||||
X(null, "\n string\n string\n ");
|
||||
@@ -5,7 +5,7 @@ var result;
|
||||
for (var index in let_array) {
|
||||
let let_index = index;
|
||||
let let_value = let_array[let_index];
|
||||
let_result.push(function() {
|
||||
let_result.push(function () {
|
||||
return [let_index, let_value];
|
||||
});
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ var result;
|
||||
let let_l = [];
|
||||
for (var var_x = 1, var_y = 2, var_z = 3; var_x < 10; var_x ++) {
|
||||
let l_x = var_x, l_y = var_y, l_z = var_z;
|
||||
let_l.push(function() {
|
||||
let_l.push(function () {
|
||||
return [l_x, l_y, l_z];
|
||||
});
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ function letInClosure(n) {
|
||||
if (i % 3 == 0) {
|
||||
continue;
|
||||
}
|
||||
l.push(function() {
|
||||
l.push(function () {
|
||||
return let_i;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
(function() {
|
||||
(function () {
|
||||
var x = 1;
|
||||
function f() {
|
||||
assert.equal(x, 1);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function nestedFunction1() {
|
||||
return function() {
|
||||
return function () {
|
||||
let let_x = 'let x';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function nestedFunction2() {
|
||||
let let_func = function() {
|
||||
let let_func = function () {
|
||||
let let_x = 'let x';
|
||||
}
|
||||
return let_func;
|
||||
|
||||
@@ -2,6 +2,6 @@ var numbers = [1, 2, 3];
|
||||
|
||||
for (let i in numbers) {
|
||||
function foo() {
|
||||
return i;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,4 @@ export default foo;
|
||||
export default function () {}
|
||||
export default class {}
|
||||
export default function foo () {}
|
||||
export default class foo {}
|
||||
export default class Foo {}
|
||||
|
||||
@@ -5,11 +5,11 @@ define(["exports"], function (exports) {
|
||||
exports.default = {};
|
||||
exports.default = [];
|
||||
exports.default = foo;
|
||||
exports.default = function() {};
|
||||
exports.default = function () {};
|
||||
exports.default = function () {};
|
||||
function foo() {}
|
||||
exports.default = foo;
|
||||
function Foo() {}
|
||||
|
||||
exports.default = function() {};
|
||||
|
||||
exports.default = function foo() {};
|
||||
|
||||
exports.default = function foo() {};
|
||||
});
|
||||
exports.default = Foo;
|
||||
});
|
||||
@@ -1,7 +1,7 @@
|
||||
define(["exports", "foo"], function (exports, _foo) {
|
||||
"use strict";
|
||||
|
||||
(function(obj) {
|
||||
(function (obj) {
|
||||
for (var i in obj) {
|
||||
exports[i] = obj[i];
|
||||
}
|
||||
@@ -14,4 +14,4 @@ define(["exports", "foo"], function (exports, _foo) {
|
||||
exports.default = _foo.foo;
|
||||
exports.default = _foo.foo;
|
||||
exports.bar = _foo.bar;
|
||||
});
|
||||
});
|
||||
@@ -8,4 +8,4 @@ define(["exports"], function (exports) {
|
||||
exports.default = foo;
|
||||
exports.default = foo;
|
||||
exports.bar = bar;
|
||||
});
|
||||
});
|
||||
@@ -4,7 +4,7 @@ define(["exports"], function (exports) {
|
||||
exports.foo7 = foo7;
|
||||
var foo = 1;
|
||||
exports.foo = foo;
|
||||
var foo2 = function() {};
|
||||
var foo2 = function () {};
|
||||
exports.foo2 = foo2;
|
||||
var foo3;
|
||||
exports.foo3 = foo3;
|
||||
@@ -15,8 +15,7 @@ define(["exports"], function (exports) {
|
||||
var _foo6 = 3;
|
||||
exports.foo6 = _foo6;
|
||||
function foo7() {}
|
||||
|
||||
var foo8 = function foo8() {};
|
||||
|
||||
exports.foo8 = foo8;
|
||||
});
|
||||
});
|
||||
@@ -4,8 +4,8 @@ export function nextOdd(n) {
|
||||
return isEven(n) ? n + 1 : n + 2;
|
||||
}
|
||||
|
||||
export var isOdd = (function(isEven) {
|
||||
return function(n) {
|
||||
export var isOdd = (function (isEven) {
|
||||
return function (n) {
|
||||
return !isEven(n);
|
||||
};
|
||||
})(isEven);
|
||||
|
||||
@@ -3,16 +3,14 @@ define(["exports", "./evens"], function (exports, _evens) {
|
||||
|
||||
exports.nextOdd = nextOdd;
|
||||
var isEven = _evens.isEven;
|
||||
|
||||
function nextOdd(n) {
|
||||
return (isEven(n) ? n + 1 : n + 2);
|
||||
return isEven(n) ? n + 1 : n + 2;
|
||||
}
|
||||
|
||||
var isOdd = function(isEven) {
|
||||
return function(n) {
|
||||
var isOdd = (function (isEven) {
|
||||
return function (n) {
|
||||
return !isEven(n);
|
||||
};
|
||||
}(isEven);
|
||||
|
||||
})(isEven);
|
||||
exports.isOdd = isOdd;
|
||||
});
|
||||
});
|
||||
@@ -1,5 +1,6 @@
|
||||
define(["exports", "foo"], function (exports, _foo) {
|
||||
"use strict";
|
||||
|
||||
var foo = _foo.default;
|
||||
var foo = _foo.default;
|
||||
});
|
||||
});
|
||||
@@ -1,4 +1,5 @@
|
||||
define(["exports", "foo"], function (exports, _foo) {
|
||||
"use strict";
|
||||
|
||||
var foo = _foo;
|
||||
});
|
||||
});
|
||||
@@ -3,4 +3,4 @@ define(["exports", "foo"], function (exports, _foo) {
|
||||
|
||||
var foo = _foo.default;
|
||||
var xyz = _foo.baz;
|
||||
});
|
||||
});
|
||||
@@ -7,4 +7,4 @@ define(["exports", "foo"], function (exports, _foo) {
|
||||
var baz = _foo.bar;
|
||||
var baz = _foo.bar;
|
||||
var xyz = _foo.xyz;
|
||||
});
|
||||
});
|
||||
@@ -7,6 +7,7 @@ define(["exports", "foo", "foo-bar", "./directory/foo-bar"], function (exports,
|
||||
var bar = _foo.foo;
|
||||
exports.test = test;
|
||||
var test = 5;
|
||||
|
||||
exports.test = test;
|
||||
exports.default = test;
|
||||
});
|
||||
});
|
||||
@@ -5,4 +5,4 @@ export default foo;
|
||||
export default function () {}
|
||||
export default class {}
|
||||
export default function foo () {}
|
||||
export default class foo {}
|
||||
export default class Foo {}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
exports.default = 42;
|
||||
exports.default = {};
|
||||
exports.default = [];
|
||||
exports.default = foo;
|
||||
exports.default = function() {};
|
||||
exports.default = function () {};
|
||||
exports.default = function () {};
|
||||
function foo() {}
|
||||
exports.default = foo;
|
||||
function Foo() {}
|
||||
|
||||
exports.default = function() {};
|
||||
|
||||
exports.default = function foo() {};
|
||||
|
||||
exports.default = function foo() {};
|
||||
exports.default = Foo;
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
(function(obj) {
|
||||
(function (obj) {
|
||||
for (var i in obj) {
|
||||
exports[i] = obj[i];
|
||||
}
|
||||
@@ -12,4 +12,4 @@ exports.bar = require("foo").bar;
|
||||
exports.bar = require("foo").foo;
|
||||
exports.default = require("foo").foo;
|
||||
exports.default = require("foo").foo;
|
||||
exports.bar = require("foo").bar;
|
||||
exports.bar = require("foo").bar;
|
||||
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
exports.foo = foo;
|
||||
exports.foo = foo;
|
||||
exports.bar = bar;
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
exports.foo7 = foo7;
|
||||
var foo = 1;
|
||||
exports.foo = foo;
|
||||
var foo2 = function() {};
|
||||
var foo2 = function () {};
|
||||
exports.foo2 = foo2;
|
||||
var foo3;
|
||||
exports.foo3 = foo3;
|
||||
@@ -13,7 +14,6 @@ exports.foo5 = _foo5;
|
||||
var _foo6 = 3;
|
||||
exports.foo6 = _foo6;
|
||||
function foo7() {}
|
||||
|
||||
var foo8 = function foo8() {};
|
||||
|
||||
exports.foo8 = foo8;
|
||||
exports.foo8 = foo8;
|
||||
@@ -4,8 +4,8 @@ export function nextOdd(n) {
|
||||
return isEven(n) ? n + 1 : n + 2;
|
||||
}
|
||||
|
||||
export var isOdd = (function(isEven) {
|
||||
return function(n) {
|
||||
export var isOdd = (function (isEven) {
|
||||
return function (n) {
|
||||
return !isEven(n);
|
||||
};
|
||||
})(isEven);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user