summaryrefslogtreecommitdiff
path: root/cli/tsc/10_dispatch_json.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc/10_dispatch_json.js')
-rw-r--r--cli/tsc/10_dispatch_json.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tsc/10_dispatch_json.js b/cli/tsc/10_dispatch_json.js
index 3d19ea62a..a25014789 100644
--- a/cli/tsc/10_dispatch_json.js
+++ b/cli/tsc/10_dispatch_json.js
@@ -3,7 +3,7 @@
((window) => {
const core = window.Deno.core;
const util = window.__bootstrap.util;
- const getErrorClass = window.__bootstrap.errors.getErrorClass;
+
// Using an object without a prototype because `Map` was causing GC problems.
const promiseTable = Object.create(null);
let _nextPromiseId = 1;
@@ -22,7 +22,7 @@
function unwrapResponse(res) {
if (res.err != null) {
- throw new (getErrorClass(res.err.kind))(res.err.message);
+ throw new (core.getErrorClass(res.err.kind))(res.err.message);
}
util.assert(res.ok != null);
return res.ok;