summaryrefslogtreecommitdiff
path: root/js/libdeno.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2018-08-26 16:57:16 +0900
committerRyan Dahl <ry@tinyclouds.org>2018-08-26 11:03:41 -0400
commit17d6d6b336e48ab53ae1efa546df7c7b045152da (patch)
tree013b5fe136c93f7526e10b4b30d7fbab5ba910f8 /js/libdeno.ts
parent3a5cf9ca8b6a4dae204139faff3f3bbad1f78b54 (diff)
refactor: add and use libdeno.setGlobalErrorHandler instead of window.onerror
Diffstat (limited to 'js/libdeno.ts')
-rw-r--r--js/libdeno.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/libdeno.ts b/js/libdeno.ts
index 83dc8efa0..142d779c2 100644
--- a/js/libdeno.ts
+++ b/js/libdeno.ts
@@ -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;
}