summaryrefslogtreecommitdiff
path: root/js/compiler.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-01-03 22:11:01 -0500
committerGitHub <noreply@github.com>2019-01-03 22:11:01 -0500
commitea6c9f2f365698e8120177bb7a1344e83f859180 (patch)
tree3174c0cc4004063fb626255c82fbb4ffefad5d7a /js/compiler.ts
parent6be1164d8917b1ee40d344151f387417352fc804 (diff)
Revert "use byte array instead of string for code fetch (#1307)" (#1455)
This reverts commit e976b3e0414dc768624b77e431ee7f55b03b76a4. There is nothing technically wrong with this commit, but it's adding complexity to a big refactor (native ES modules #975). Since it's not necessary and simply a philosophical preference, I will revert for now and try to bring it back later.
Diffstat (limited to 'js/compiler.ts')
-rw-r--r--js/compiler.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/js/compiler.ts b/js/compiler.ts
index f8899135b..9656bf446 100644
--- a/js/compiler.ts
+++ b/js/compiler.ts
@@ -233,7 +233,6 @@ 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;