summaryrefslogtreecommitdiff
path: root/js/runtime.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/runtime.ts')
-rw-r--r--js/runtime.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/js/runtime.ts b/js/runtime.ts
index 1a9e8497d..93649e11c 100644
--- a/js/runtime.ts
+++ b/js/runtime.ts
@@ -176,14 +176,7 @@ export function resolveModule(
} else {
// We query Rust with a CodeFetch message. It will load the sourceCode, and
// if there is any outputCode cached, will return that as well.
- let fetchResponse;
- try {
- fetchResponse = os.codeFetch(moduleSpecifier, containingFile);
- } catch (e) {
- // TODO Only catch "no such file or directory" errors. Need error codes.
- util.log("os.codeFetch error ignored", e.message);
- return null;
- }
+ const fetchResponse = os.codeFetch(moduleSpecifier, containingFile);
filename = fetchResponse.filename;
sourceCode = fetchResponse.sourceCode;
outputCode = fetchResponse.outputCode;