diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-08-07 22:47:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 16:47:18 -0400 |
commit | 59ca66a207ceb4699e1322ce22f953ac0f124f13 (patch) | |
tree | 775b30b9a46f3c824d97060fb147336ecb6b83b7 /cli/rt/10_dispatch_json.js | |
parent | 479164d287604d079f6342e656f2ac95b109367f (diff) |
Encode op errors as strings instead of numbers (#6977)
Diffstat (limited to 'cli/rt/10_dispatch_json.js')
-rw-r--r-- | cli/rt/10_dispatch_json.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/rt/10_dispatch_json.js b/cli/rt/10_dispatch_json.js index 3d19ea62a..05b4d46ed 100644 --- a/cli/rt/10_dispatch_json.js +++ b/cli/rt/10_dispatch_json.js @@ -3,7 +3,6 @@ ((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 +21,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; |