@abaplint/runtime
Version:
Transpiler - Runtime
14 lines • 385 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.throwError = throwError;
function throwError(name) {
// @ts-ignore
if (abap.Classes[name] !== undefined) {
// @ts-ignore
throw new abap.Classes[name]();
}
else {
throw new Error(`Global class ${name} not found`);
}
}
//# sourceMappingURL=throw_error.js.map