summaryrefslogtreecommitdiff
path: root/js/compiler.ts
diff options
context:
space:
mode:
authorF001 <changchun.fan@qq.com>2018-12-12 17:43:42 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-12-12 04:43:42 -0500
commite976b3e0414dc768624b77e431ee7f55b03b76a4 (patch)
tree7996df0a824af4875e19d92d916a4eee14567bb0 /js/compiler.ts
parent65dd0d516d14ff0ec5ec37513efc10b7882172e6 (diff)
use byte array instead of string for code fetch (#1307)
Diffstat (limited to 'js/compiler.ts')
-rw-r--r--js/compiler.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/compiler.ts b/js/compiler.ts
index e0bfb77bb..5031fb0bf 100644
--- a/js/compiler.ts
+++ b/js/compiler.ts
@@ -233,6 +233,7 @@ export class Compiler
// We query Rust with a CodeFetch message. It will load the sourceCode,
// and if there is any outputCode cached, will return that as well.
const fetchResponse = this._os.codeFetch(moduleSpecifier, containingFile);
+ assert(fetchResponse != null, "fetchResponse is null");
moduleId = fetchResponse.moduleName;
fileName = fetchResponse.filename;
mediaType = fetchResponse.mediaType;