summaryrefslogtreecommitdiff
path: root/cli/tsc/10_dispatch_json.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-08-07 22:47:18 +0200
committerGitHub <noreply@github.com>2020-08-07 16:47:18 -0400
commit59ca66a207ceb4699e1322ce22f953ac0f124f13 (patch)
tree775b30b9a46f3c824d97060fb147336ecb6b83b7 /cli/tsc/10_dispatch_json.js
parent479164d287604d079f6342e656f2ac95b109367f (diff)
Encode op errors as strings instead of numbers (#6977)
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;