UNPKG

@abaplint/runtime

Version:
39 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._receiveSetResult = _receiveSetResult; exports.receive = receive; let cache = undefined; function _receiveSetResult(options) { cache = options; } function receive(options) { if (cache === undefined) { throw new Error("runtime receive(), no results"); } for (const a in cache.importing || []) { const aval = cache.importing[a]; const bval = options.importing[a]; if (bval === undefined) { continue; } bval.set(aval); } for (const a in cache.tables || []) { const aval = cache.tables[a]; const bval = options.tables[a]; if (bval === undefined) { continue; } bval.set(aval); } for (const a in cache.changing || []) { const aval = cache.changing[a]; const bval = options.changing[a]; if (bval === undefined) { continue; } bval.set(aval); } cache = undefined; } //# sourceMappingURL=receive.js.map