add constructor to body in order that it was supplied in - fixes #1877

This commit is contained in:
Sebastian McKenzie
2015-06-30 10:10:52 +01:00
parent e55ce575cd
commit 092d98fb27
3 changed files with 67 additions and 23 deletions

View File

@@ -0,0 +1,13 @@
class x {
f() {
1
2
3
}
constructor() {
4
5
6
}
}

View File

@@ -0,0 +1,19 @@
"use strict";
var x = (function () {
x.prototype.f = function f() {
1;
2;
3;
};
function x() {
4;
5;
6;
babelHelpers.classCallCheck(this, x);
}
return x;
})();