Skip to content

[F] compilerAssert

function compilerAssert(
condition,
message,
target?): asserts condition

Use this to report bugs in the compiler, and not errors in the source code being compiled.

Parameters

ParameterTypeDescription
conditionanyThrow if this is not true.
messagestringError message.
target?DiagnosticTargetOptional location in source code that might give a clue about what got the compiler off track.

Returns

asserts condition