Skip to content

Commit f95ee44

Browse files
authored
Annotate that the ERROR macro terminates execution (#1968)
1 parent b95886d commit f95ee44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/assembly/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ declare const F64: typeof _Float;
13931393
// User-defined diagnostic macros
13941394

13951395
/** Emits a user-defined diagnostic error when encountered. */
1396-
declare function ERROR(message?: any): void;
1396+
declare function ERROR(message?: any): never;
13971397
/** Emits a user-defined diagnostic warning when encountered. */
13981398
declare function WARNING(message?: any): void;
13991399
/** Emits a user-defined diagnostic info when encountered. */

0 commit comments

Comments
 (0)