mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
15 lines
251 B
JavaScript
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;
|