summaryrefslogtreecommitdiff
path: root/cli/js/dispatch_json.ts
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2020-01-21 14:57:56 -0500
committerGitHub <noreply@github.com>2020-01-21 14:57:56 -0500
commitfa7f34eb8cec07f4c68ca4e9c46a983bc3e2308f (patch)
tree821263579dd75de3c16508fdecfdcaba52987373 /cli/js/dispatch_json.ts
parent7fd50065a7d8a4c6ed1b1090703a7baaabdbd6aa (diff)
Revert "Create an old program to be used in snapshot. (#3644)"
Ref #3712. This change allowed the deno_typescript crate to reference cli/js/lib.deno_runtime.d.ts which breaks "cargo package". We intend to reintroduce a revised version of this patch later once "cargo package" is working and tested. This reverts commit 737ab94ea1bdf65eeef323ea37e84bcf430fb92c.
Diffstat (limited to 'cli/js/dispatch_json.ts')
-rw-r--r--cli/js/dispatch_json.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/dispatch_json.ts b/cli/js/dispatch_json.ts
index adccb69c6..104a7e564 100644
--- a/cli/js/dispatch_json.ts
+++ b/cli/js/dispatch_json.ts
@@ -62,7 +62,7 @@ export function sendSync(
const resUi8 = core.dispatch(opId, argsUi8, zeroCopy);
util.assert(resUi8 != null);
- const res = decode(resUi8);
+ const res = decode(resUi8!);
util.assert(res.promiseId == null);
return unwrapResponse(res);
}