Skip to content

Commit

Permalink
Throw on bad mtime (#3556)
Browse files Browse the repository at this point in the history
* Throw on bad mtime

Closes #3555 (thanks @Callum-Shipton)
  • Loading branch information
mattgodbolt committed Apr 25, 2022
1 parent 62afc10 commit d35e98f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/base-compiler.js
Expand Up @@ -237,6 +237,9 @@ export class BaseCompiler {
}

async execCompilerCached(compiler, args, options) {
if (this.mtime === null) {
throw new Error('Attempt to access cached compiler before initialise() called');
}
if (!options) {
options = this.getDefaultExecOptions();
options.timeoutMs = 0;
Expand Down

0 comments on commit d35e98f

Please sign in to comment.