swc/tests/tsc-references/salsa/constructorFunctionsStrict/input.ts/es2015.2.minified/output.js

15 lines
251 B
JavaScript

function C(x) {
this.x = x;
}
C.prototype.m = function() {
this.y = 12;
};
var c = new C(1);
function A(x) {
if (!(this instanceof A)) return new A(x);
this.x = x;
}
c.x = void 0, c.y = void 0;
var k = A(1), j = new A(2);
k.x === j.x;