swc/tests/tsc-references/internalModules/moduleDeclarations/invalidInstantiatedModule/input.ts/es5.1.normal/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

23 lines
451 B
JavaScript

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var M1;
(function(M) {
var Point = function Point() {
"use strict";
_classCallCheck(this, Point);
};
M.Point = Point;
M.Point = 1;
})(M1 || (M1 = {
}));
var M21;
(function(M2) {
M2.Point = 1;
})(M21 || (M21 = {
}));
var m = M21;
var p; // Error