first commit

This commit is contained in:
Sebastian McKenzie
2014-09-28 23:39:22 +10:00
commit c97696c224
167 changed files with 2007 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class Test extends Foo {
constructor() {
woops.super.test();
super();
super.test();
foob(super);
}
}

View File

@@ -0,0 +1,17 @@
var Test = function (Foo) {
function Test() {
woops.super.test();
Foo.call(this);
Foo.prototype.test.call(this);
foob(Foo);
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
});
return Test;
}(Foo);

View File

@@ -0,0 +1,5 @@
class Test {
constructor() {
this.state = "test";
}
}

View File

@@ -0,0 +1,6 @@
var Test = function () {
function Test() {
this.state = "test";
}
return Test;
}();

View File

@@ -0,0 +1,8 @@
class Test {
get test() {
return 5 + 5;
}
set test(val) {
this._test = val;
}
}

View File

@@ -0,0 +1,15 @@
var Test = function () {
function Test() {
}
Object.defineProperties(Test.prototype, {
test: {
get: function () {
return 5 + 5;
},
set: function (val) {
this._test = val;
}
}
});
return Test;
}();

View File

@@ -0,0 +1,5 @@
class Test {
get test() {
return 5 + 5;
}
}

View File

@@ -0,0 +1,12 @@
var Test = function () {
function Test() {
}
Object.defineProperties(Test.prototype, {
test: {
get: function () {
return 5 + 5;
}
}
});
return Test;
}();

View File

@@ -0,0 +1,5 @@
class Test {
test() {
return 5 + 5;
}
}

View File

@@ -0,0 +1,8 @@
var Test = function () {
function Test() {
}
Test.prototype.test = function () {
return 5 + 5;
};
return Test;
}();

View File

@@ -0,0 +1,5 @@
class Test {
set test(val) {
this._test = val;
}
}

View File

@@ -0,0 +1,12 @@
var Test = function () {
function Test() {
}
Object.defineProperties(Test.prototype, {
test: {
set: function (val) {
this._test = val;
}
}
});
return Test;
}();

View File

@@ -0,0 +1 @@
class Test { }

View File

@@ -0,0 +1,5 @@
var Test = function () {
function Test() {
}
return Test;
}();

View File

@@ -0,0 +1 @@
class Test extends Foo { }

View File

@@ -0,0 +1,13 @@
var Test = function (Foo) {
function Test() {
}
Test.prototype = Object.create(Foo.prototype, {
constructor: {
value: Test,
enumerable: false,
writable: true,
configurable: true
}
});
return Test;
}(Foo);