mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-27 07:52:14 +00:00
12 lines
213 B
TypeScript
12 lines
213 B
TypeScript
|
var abortCalled = false;
|
||
|
|
||
|
@global
|
||
|
function abort(message: string | null, filename: string, line: i32, column: i32): void {
|
||
|
abortCalled = true;
|
||
|
}
|
||
|
|
||
|
assert(false, "this is ok");
|
||
|
|
||
|
if (!abortCalled)
|
||
|
unreachable();
|