MCPcopy Create free account
hub / github.com/denoland/std / assert

Function assert

jsonc/testdata/test262/assert.js:13–22  ·  view source on GitHub ↗
(mustBeTrue, message)

Source from the content-addressed store, hash-verified

11
12
13function assert(mustBeTrue, message) {
14 if (mustBeTrue === true) {
15 return;
16 }
17
18 if (message === undefined) {
19 message = 'Expected true but got ' + assert._toString(mustBeTrue);
20 }
21 throw new Test262Error(message);
22}
23
24assert._isSameValue = function (a, b) {
25 if (a === b) {

Callers 9

fnFunction · 0.90
verifyPropertyFunction · 0.70
verifyWritableFunction · 0.70
verifyNotWritableFunction · 0.70
verifyEnumerableFunction · 0.70
verifyNotEnumerableFunction · 0.70
verifyConfigurableFunction · 0.70
verifyNotConfigurableFunction · 0.70
S15.12.2_A1.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected