swc/ecmascript/minifier/tests/terser/compress/arrow/issue_2271/output.js

10 lines
208 B
JavaScript
Raw Normal View History

var Foo = function () {};
Foo.prototype.set = function (value) {
this.value = value;
return this;
};
Foo.prototype.print = function () {
console.log(this.value);
};
new Foo().set("PASS").print();