@abaplint/runtime
Version:
Transpiler - Runtime
18 lines • 562 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.line_index = line_index;
const is_line_not_found_1 = require("../is_line_not_found");
const operators_1 = require("../operators");
async function line_index(callback) {
try {
await callback();
}
catch (error) {
if ((0, is_line_not_found_1.isLineNotFound)(error)) {
return abap.IntegerFactory.get(0);
}
throw error;
}
return abap.IntegerFactory.get(operators_1.foundIndex);
}
//# sourceMappingURL=line_index.js.map