MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / assert

Function assert

examples/io/streams/modules/streams.js:10–15  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

8};
9
10function assert(it) {
11 if (!it) {
12 debugger;
13 throw new TypeError("assertion");
14 }
15}
16function ignoreReason(reason) {
17// trace(`ignore ${ reason }\n`);
18}

Callers 15

nextStepsFunction · 0.70
returnStepsFunction · 0.70
CreateReadableStreamFunction · 0.70
ReadableStreamPipeToFunction · 0.70
ReadableStreamTeeFunction · 0.70
ReadableStreamDefaultTeeFunction · 0.70
ReadableByteStreamTeeFunction · 0.70
pullWithDefaultReaderFunction · 0.70
pullWithBYOBReaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected