summaryrefslogtreecommitdiff
path: root/js/errors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/errors.ts')
-rw-r--r--js/errors.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/errors.ts b/js/errors.ts
index e4494520d..c91be23b6 100644
--- a/js/errors.ts
+++ b/js/errors.ts
@@ -9,7 +9,7 @@ export { ErrorKind } from "gen/msg_generated";
* try {
* somethingThatMightThrow();
* } catch (e) {
- * if (e instanceof DenoError && e.kind === DenoError.Overflow) {
+ * if (e instanceof DenoError && e.kind === ErrorKind.Overflow) {
* console.error("Overflow error!");
* }
* }