TypeScript/tests/baselines/reference/asiInES6Classes.js

37 lines
376 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [asiInES6Classes.ts]
class Foo {
defaults = {
done: false
}
bar() {
return 3;
}
}
//// [asiInES6Classes.js]
var Foo = (function () {
function Foo() {
this.defaults = {
done: false
};
}
Foo.prototype.bar = function () {
return 3;
};
return Foo;
})();