MCPcopy Index your code
hub / github.com/TruthHun/BookStack / assertSize

Function assertSize

static/word2md/mammoth.browser.js:9855–9861  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

9853}
9854
9855function assertSize (size) {
9856 if (typeof size !== 'number') {
9857 throw new TypeError('"size" argument must be a number')
9858 } else if (size < 0) {
9859 throw new RangeError('"size" argument must not be negative')
9860 }
9861}
9862
9863function alloc (that, size, fill, encoding) {
9864 assertSize(size)

Callers 2

allocFunction · 0.70
allocUnsafeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected