rename syntax tests to transformation

This commit is contained in:
Sebastian McKenzie
2014-10-25 09:09:55 +11:00
parent 65ba4d35e7
commit 8136b4c40b
371 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -0,0 +1,32 @@
"use strict";
var _extends = function (child, parent) {
child.prototype = Object.create(parent.prototype, {
constructor: {
value: child,
enumerable: false,
writable: true,
configurable: true
}
});
child.__proto__ = parent;
};
var Test = function() {
var Test = function Test() {
this.state = "test";
};
return Test;
}();
var Foo = function(Bar) {
var Foo = function Foo() {
this.state = "test";
};
_extends(Foo, Bar);
return Foo;
}(Bar);