swc/tests/fixture/issue-1107/1/output/index.js

18 lines
550 B
JavaScript
Raw Normal View History

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
export var Class1 = function Class1(param) {
"use strict";
var _name = param.name, name = _name === void 0 ? '' : _name;
_classCallCheck(this, Class1);
console.log(name);
};
export var Class2 = function Class2(param) {
"use strict";
var _name = param.name, name = _name === void 0 ? '' : _name;
_classCallCheck(this, Class2);
console.log(name);
};