MCPcopy Create free account
hub / github.com/RubyLouvre/anu / assertSize

Function assertSize

test/babel.js:45863–45869  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

45861 }
45862
45863 function assertSize(size) {
45864 if (typeof size !== 'number') {
45865 throw new TypeError('"size" argument must be a number');
45866 } else if (size < 0) {
45867 throw new RangeError('"size" argument must not be negative');
45868 }
45869 }
45870
45871 function alloc(that, size, fill, encoding) {
45872 assertSize(size);

Callers 2

allocFunction · 0.85
allocUnsafeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected