UNPKG

@abaplint/runtime

Version:
25 lines 563 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MemoryConsole = void 0; class MemoryConsole { constructor() { this.data = ""; } clear() { this.data = ""; } add(data) { this.data = this.data + data; } get() { return this.data; } isEmpty() { return this.data === ""; } getTrimmed() { return this.data.split("\n").map(a => a.trimEnd()).join("\n"); } } exports.MemoryConsole = MemoryConsole; //# sourceMappingURL=memory_console.js.map