UNPKG

wonder.js

Version:
20 lines (16 loc) 956 B
'use strict'; var Log$WonderLog = require("wonder-log/lib/js/src/Log.js"); var Contract$WonderLog = require("wonder-log/lib/js/src/Contract.js"); var StateDataMain$Wonderjs = require("../../../service/state/main/data/StateDataMain.js"); var IsDebugMainService$Wonderjs = require("../../../service/state/main/state/IsDebugMainService.js"); function buildBufferArray(buffers, binBuffer) { Contract$WonderLog.requireCheck((function (param) { var bufferLen = buffers.length; return Contract$WonderLog.test(Log$WonderLog.buildAssertMessage("has only one buffer", "has " + (String(bufferLen) + "")), (function (param) { return Contract$WonderLog.Operators[/* = */0](bufferLen, 1); })); }), IsDebugMainService$Wonderjs.getIsDebug(StateDataMain$Wonderjs.stateData)); return /* array */[binBuffer]; } exports.buildBufferArray = buildBufferArray; /* Log-WonderLog Not a pure module */