UNPKG

wonder.js

Version:
30 lines (24 loc) 1.08 kB
'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 MutableSparseMapService$WonderCommonlib = require("wonder-commonlib/lib/js/src/MutableSparseMapService.js"); function checkShouldHasNoSlot(map) { return Contract$WonderLog.test(Log$WonderLog.buildAssertMessage("map has no slot", "not"), (function (param) { return Contract$WonderLog.Operators[/* = */0](MutableSparseMapService$WonderCommonlib.length(MutableSparseMapService$WonderCommonlib.getValidValues(map)), MutableSparseMapService$WonderCommonlib.length(map)); })); } function buildBufferViewData(byteOffset, byteLength) { return /* tuple */[ 0, byteOffset, byteLength, undefined ]; } function buildAccessorByteOffset(param) { return 0; } exports.checkShouldHasNoSlot = checkShouldHasNoSlot; exports.buildBufferViewData = buildBufferViewData; exports.buildAccessorByteOffset = buildAccessorByteOffset; /* Log-WonderLog Not a pure module */