summaryrefslogtreecommitdiff
path: root/runtime.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-27 03:46:18 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-27 03:46:51 -0400
commita831d1e2391e67f6d6ad3284ab9858d9b8d610c1 (patch)
tree4c8c5cf44f050f1c5e8875bf24958c92139ea476 /runtime.ts
parentef00cf3e38b76395abe42d406c2bb06380754091 (diff)
Implement fetch
Diffstat (limited to 'runtime.ts')
-rw-r--r--runtime.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime.ts b/runtime.ts
index 52277653f..c34f7faac 100644
--- a/runtime.ts
+++ b/runtime.ts
@@ -24,7 +24,7 @@ type AmdFactory = (...args: any[]) => undefined | object;
type AmdDefine = (deps: string[], factory: AmdFactory) => void;
// Uncaught exceptions are sent to window.onerror by v8worker2.
-window.onerror = function(message, source, lineno, colno, error) {
+window.onerror = (message, source, lineno, colno, error) => {
console.log(error.message, error.stack);
os.exit(1);
};
@@ -143,11 +143,11 @@ export function resolveModule(
moduleSpecifier,
containingFile
);
- if (sourceCode.length == 0) {
+ if (sourceCode.length === 0) {
return null;
}
util.log("resolveModule sourceCode length ", sourceCode.length);
- let m = FileModule.load(filename);
+ const m = FileModule.load(filename);
if (m != null) {
return m;
} else {