MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / assertSize

Function assertSize

lib/sanitize-html.js:759–765  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

757}
758
759function assertSize (size) {
760 if (typeof size !== 'number') {
761 throw new TypeError('"size" argument must be a number')
762 } else if (size < 0) {
763 throw new RangeError('"size" argument must not be negative')
764 }
765}
766
767function alloc (that, size, fill, encoding) {
768 assertSize(size)

Callers 2

allocFunction · 0.85
allocUnsafeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected