mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
parent
072fcd6b0e
commit
4b9ab359a7
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ export function setup(mainJs: string, mainMap: string): void {
|
||||||
// FileModule.load(). FileModules are NOT executed upon first load, only when
|
// FileModule.load(). FileModules are NOT executed upon first load, only when
|
||||||
// compileAndRun is called.
|
// compileAndRun is called.
|
||||||
export class FileModule {
|
export class FileModule {
|
||||||
scriptVersion: string = undefined;
|
scriptVersion: string;
|
||||||
readonly exports = {};
|
readonly exports = {};
|
||||||
|
|
||||||
private static readonly map = new Map<string, FileModule>();
|
private static readonly map = new Map<string, FileModule>();
|
||||||
|
@ -80,7 +80,7 @@ export class FileModule {
|
||||||
|
|
||||||
compileAndRun(): void {
|
compileAndRun(): void {
|
||||||
if (!this.outputCode) {
|
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(
|
util.assert(
|
||||||
this.sourceCode != null && this.sourceCode.length > 0,
|
this.sourceCode != null && this.sourceCode.length > 0,
|
||||||
`Have no source code from ${this.fileName}`
|
`Have no source code from ${this.fileName}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue