Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
10 lines
176 B
Plaintext
10 lines
176 B
Plaintext
export function assert(
|
|
condition: any,
|
|
msg = 'Assertion failed!'
|
|
): asserts condition {
|
|
if (!condition) {
|
|
console.error(msg)
|
|
throw new Error(msg)
|
|
}
|
|
}
|