swc/tests/tsc-references/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName/input.ts/es5.2.minified/output.js
Donny/강동윤 26944e159d
fix(es/transforms/base): Reimplement hygiene (#2408)
swc_ecma_transforms_base:
 - Reimplement `hygiene`.
2021-10-21 05:12:50 +00:00

51 lines
1.6 KiB
JavaScript

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}
function _defineProperties(target, props) {
for(var i = 0; i < props.length; i++){
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
}
var A1, Point = function() {
"use strict";
function Point(x, y) {
_classCallCheck(this, Point), this.x = x, this.y = y;
}
return _createClass(Point, null, [
{
key: "Origin",
value: function() {
return {
x: 0,
y: 0
};
}
}
]), Point;
}();
!function(A) {
var Point = function() {
"use strict";
function Point(x, y) {
_classCallCheck(this, Point), this.x = x, this.y = y;
}
return _createClass(Point, null, [
{
key: "Origin",
value: function() {
return {
x: 0,
y: 0
};
}
}
]), Point;
}();
A.Point = Point;
}(A1 || (A1 = {
}));