-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56b74bc
commit 0c41ff8
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export type SIGNAL = "SIGSEGV" | string; | ||
|
||
export type CrashCallback = (signal: SIGNAL, address: string, stack: string[]) => any; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
legraphista
Author
Contributor
|
||
|
||
export function registerHandler(): void; | ||
export function registerHandler(file: string): void; | ||
export function registerHandler(file: string, callback: CrashCallback): void; | ||
|
||
export function causeSegfault(): void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,6 @@ | |
"nan": "^2.13.2" | ||
}, | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"license": "BSD-3-Clause" | ||
} |
This should return void, no?