summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gill <gillchristiang@gmail.com>2018-06-09 11:10:21 +0200
committerRyan Dahl <ry@tinyclouds.org>2018-06-09 11:10:21 +0200
commit4b9ab359a753aeb52ebe8dc2b272fe2dfa2b1a22 (patch)
tree1321c773ce3afc9582520c5b9c51d1ad20507e31
parent072fcd6b0ef95e75281b3591bad38aaf4feb080b (diff)
Remove unnecessary 'undefined' (#214)
Also fix typo on comment
-rw-r--r--runtime.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime.ts b/runtime.ts
index 6bc09dd89..8929b7112 100644
--- a/runtime.ts
+++ b/runtime.ts
@@ -59,7 +59,7 @@ export function setup(mainJs: string, mainMap: string): void {
// FileModule.load(). FileModules are NOT executed upon first load, only when
// compileAndRun is called.
export class FileModule {
- scriptVersion: string = undefined;
+ scriptVersion: string;
readonly exports = {};
private static readonly map = new Map<string, FileModule>();
@@ -80,7 +80,7 @@ export class FileModule {
compileAndRun(): void {
if (!this.outputCode) {
- // If there is no cached outputCode, the compile the code.
+ // If there is no cached outputCode, then compile the code.
util.assert(
this.sourceCode != null && this.sourceCode.length > 0,
`Have no source code from ${this.fileName}`