mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
26944e159d
swc_ecma_transforms_base: - Reimplement `hygiene`.
23 lines
451 B
JavaScript
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
|