MCPcopy Index your code
hub / github.com/SpringRoll/SpringRoll / assert

Method assert

src/debug/Debugger.js:180–185  ·  view source on GitHub ↗

* Will throw if statement is false. * @static * @param {boolean} isTrue The expression to evaluate.

(isTrue)

Source from the content-addressed store, hash-verified

178 * @param {boolean} isTrue The expression to evaluate.
179 */
180 static assert(isTrue) {
181 Debugger.initParams();
182 if (!isTrue) {
183 throw `Assert Error: ${isTrue}`;
184 }
185 }
186
187 /**
188 * Returns a boolean indicating if the debugger has been enabled or not.

Callers 1

Debugger.spec.jsFile · 0.80

Calls 1

initParamsMethod · 0.80

Tested by

no test coverage detected