mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
13 lines
271 B
JavaScript
13 lines
271 B
JavaScript
function _classCallCheck(instance, Constructor) {
|
|
if (!(instance instanceof Constructor)) {
|
|
throw new TypeError("Cannot call a class as a function");
|
|
}
|
|
}
|
|
var C = function C() {
|
|
"use strict";
|
|
_classCallCheck(this, C);
|
|
};
|
|
foo(new C);
|
|
var i;
|
|
bar(i);
|