MCPcopy
hub / github.com/xtermjs/xterm.js / assert

Function assert

src/vs/base/common/assert.ts:32–36  ·  view source on GitHub ↗
(condition: boolean, message = 'unexpected state')

Source from the content-addressed store, hash-verified

30}
31
32export function assert(condition: boolean, message = 'unexpected state'): asserts condition {
33 if (!condition) {
34 throw new BugIndicatingError(`Assertion Failed: ${message}`);
35 }
36}
37
38/**
39 * Like assert, but doesn't throw.

Callers 2

Terminal.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected