summaryrefslogtreecommitdiff
path: root/js/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.ts')
-rw-r--r--js/main.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/main.ts b/js/main.ts
index 87fe30e6c..d652b18bc 100644
--- a/js/main.ts
+++ b/js/main.ts
@@ -72,5 +72,7 @@ export default function denoMain() {
const inputFn = argv[1];
const mod = runtime.resolveModule(inputFn, `${cwd}/`);
- mod.compileAndRun();
+ assert(mod != null);
+ // TypeScript does not track assert, therefore not null assertion
+ mod!.compileAndRun();
}