update tests to work with new syntax
This commit is contained in:
parent
1f7270720f
commit
591f123670
@ -1,9 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {
|
||||
arr.map(x => x * x);
|
||||
};
|
||||
|
||||
return Test;
|
||||
}();
|
||||
var Test = function Test() {
|
||||
arr.map(x => x * x);
|
||||
};
|
||||
|
||||
@ -13,13 +13,9 @@ var _extends = function (child, parent) {
|
||||
child.__proto__ = parent;
|
||||
};
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {
|
||||
this.state = "test";
|
||||
};
|
||||
|
||||
return Test;
|
||||
}();
|
||||
var Test = function Test() {
|
||||
this.state = "test";
|
||||
};
|
||||
|
||||
var Foo = function(Bar) {
|
||||
var Foo = function Foo() {
|
||||
|
||||
@ -1,6 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {};
|
||||
return Test;
|
||||
}();
|
||||
var Test = function Test() {};
|
||||
|
||||
@ -1,11 +1,17 @@
|
||||
var BaseView = class BaseView {
|
||||
constructor() {
|
||||
this.autoRender = true;
|
||||
this.autoRender = true;
|
||||
}
|
||||
}
|
||||
|
||||
var BaseView = class {
|
||||
constructor() {
|
||||
this.autoRender = true;
|
||||
this.autoRender = true;
|
||||
}
|
||||
}
|
||||
|
||||
var BaseView = class {
|
||||
foo() {
|
||||
this.autoRender = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,17 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
var BaseView = function() {
|
||||
var BaseView = function BaseView() {
|
||||
this.autoRender = true;
|
||||
};
|
||||
var BaseView = function BaseView() {
|
||||
this.autoRender = true;
|
||||
};
|
||||
|
||||
return BaseView;
|
||||
var BaseView = function() {
|
||||
this.autoRender = true;
|
||||
};
|
||||
|
||||
|
||||
var BaseView = function() {
|
||||
var _class2 = function() {};
|
||||
|
||||
Object.defineProperties(_class2.prototype, {
|
||||
foo: {
|
||||
writable: true,
|
||||
value: function() {
|
||||
this.autoRender = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return _class2;
|
||||
}();
|
||||
|
||||
var BaseView = function() {
|
||||
var _class = function() {
|
||||
this.autoRender = true;
|
||||
};
|
||||
|
||||
return _class;
|
||||
}();
|
||||
@ -1,5 +1,5 @@
|
||||
class Test {
|
||||
constructor() {
|
||||
super.hasOwnProperty("test");
|
||||
super.hasOwnProperty("test");
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,9 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var Test = function() {
|
||||
var Test = function Test() {
|
||||
Function.prototype.hasOwnProperty.call(this, "test");
|
||||
};
|
||||
|
||||
return Test;
|
||||
}();
|
||||
var Test = function Test() {
|
||||
Function.prototype.hasOwnProperty.call(this, "test");
|
||||
};
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
"use strict";
|
||||
wow;
|
||||
test.wow();
|
||||
/*
|
||||
um yeah lol
|
||||
*/
|
||||
test.wow();
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
wow;
|
||||
test.wow();
|
||||
// um yeah lol
|
||||
test.wow();
|
||||
|
||||
@ -1,2 +1,5 @@
|
||||
/** @jsx CUSTOM_DOM */
|
||||
|
||||
"use strict";
|
||||
CUSTOM_DOM.a(null);
|
||||
|
||||
CUSTOM_DOM.a(null);
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
var object = {
|
||||
get x() {
|
||||
while (true) {
|
||||
let let_x = 'let x';
|
||||
return let_x;
|
||||
}
|
||||
while (true) {
|
||||
let let_x = 'let x';
|
||||
return let_x;
|
||||
}
|
||||
},
|
||||
|
||||
set x(v) {
|
||||
do {
|
||||
let let_v = v;
|
||||
this.v = let_v;
|
||||
} while (false);
|
||||
do {
|
||||
let let_v = v;
|
||||
this.v = let_v;
|
||||
} while (false);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -7,15 +7,9 @@ define(["exports"], function (exports) {
|
||||
exports.default = foo;
|
||||
exports.default = function() {};
|
||||
|
||||
exports.default = function() {
|
||||
var _class = function() {};
|
||||
return _class;
|
||||
}();
|
||||
exports.default = function() {};
|
||||
|
||||
exports.default = function foo() {};
|
||||
|
||||
exports.default = function() {
|
||||
var foo = function foo() {};
|
||||
return foo;
|
||||
}();
|
||||
exports.default = function foo() {};
|
||||
});
|
||||
|
||||
@ -16,10 +16,7 @@ define(["exports"], function (exports) {
|
||||
exports.foo6 = _foo6;
|
||||
function foo7() {}
|
||||
|
||||
var foo8 = function() {
|
||||
var foo8 = function foo8() {};
|
||||
return foo8;
|
||||
}();
|
||||
var foo8 = function foo8() {};
|
||||
|
||||
exports.foo8 = foo8;
|
||||
});
|
||||
|
||||
@ -5,14 +5,8 @@ exports.default = [];
|
||||
exports.default = foo;
|
||||
exports.default = function() {};
|
||||
|
||||
exports.default = function() {
|
||||
var _class = function() {};
|
||||
return _class;
|
||||
}();
|
||||
exports.default = function() {};
|
||||
|
||||
exports.default = function foo() {};
|
||||
|
||||
exports.default = function() {
|
||||
var foo = function foo() {};
|
||||
return foo;
|
||||
}();
|
||||
exports.default = function foo() {};
|
||||
|
||||
@ -14,9 +14,6 @@ var _foo6 = 3;
|
||||
exports.foo6 = _foo6;
|
||||
function foo7() {}
|
||||
|
||||
var foo8 = function() {
|
||||
var foo8 = function foo8() {};
|
||||
return foo8;
|
||||
}();
|
||||
var foo8 = function foo8() {};
|
||||
|
||||
exports.foo8 = foo8;
|
||||
exports.foo8 = foo8;
|
||||
|
||||
@ -13,15 +13,9 @@
|
||||
exports.default = foo;
|
||||
exports.default = function() {};
|
||||
|
||||
exports.default = function() {
|
||||
var _class = function() {};
|
||||
return _class;
|
||||
}();
|
||||
exports.default = function() {};
|
||||
|
||||
exports.default = function foo() {};
|
||||
|
||||
exports.default = function() {
|
||||
var foo = function foo() {};
|
||||
return foo;
|
||||
}();
|
||||
exports.default = function foo() {};
|
||||
});
|
||||
|
||||
@ -22,10 +22,7 @@
|
||||
exports.foo6 = _foo6;
|
||||
function foo7() {}
|
||||
|
||||
var foo8 = function() {
|
||||
var foo8 = function foo8() {};
|
||||
return foo8;
|
||||
}();
|
||||
var foo8 = function foo8() {};
|
||||
|
||||
exports.foo8 = foo8;
|
||||
});
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
|
||||
var t = function(x) {
|
||||
return x * x;
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user