refactor: add and use libdeno.setGlobalErrorHandler instead of window.onerror

This commit is contained in:
Yoshiya Hinosawa 2018-08-26 16:57:16 +09:00 committed by Ryan Dahl
parent 3a5cf9ca8b
commit 17d6d6b336
7 changed files with 88 additions and 56 deletions

View file

@ -10,6 +10,16 @@ interface Libdeno {
print(x: string): void;
setGlobalErrorHandler: (
handler: (
message: string,
source: string,
line: number,
col: number,
error: Error
) => void
) => void;
mainSource: string;
mainSourceMap: RawSourceMap;
}