swc/tests/tsc-references/es6/classExpressions/classExpressionES61/input.ts/es5.1.normal/output.js

11 lines
260 B
JavaScript
Raw Normal View History

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
// @target: es6
var v = function C() {
"use strict";
_classCallCheck(this, C);
};