mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 18:51:43 +00:00
Move 'abort' out of builtins and make it overridable
Now defaults to 'env.abort' as imported in lib/env.ts, but can be overridden through '--use abort=someThingElseOrNothingAtAll'
This commit is contained in:
7
std/assembly/env.ts
Normal file
7
std/assembly/env.ts
Normal file
@ -0,0 +1,7 @@
|
||||
/** Environment abort function called where assertions evaluate to false / on throw. */
|
||||
declare function abort(
|
||||
message?: string | null,
|
||||
fileName?: string | null,
|
||||
lineNumber?: u32,
|
||||
columnNumber?: u32
|
||||
): void;
|
Reference in New Issue
Block a user