Skip to content

Commit

Permalink
[squash] timothygu comment
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Oct 29, 2017
1 parent f747deb commit 32704fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/internal/loader/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ class Loader {
this.dynamicInstantiate = undefined;
}

static get validFormats() {
return ['esm', 'cjs', 'builtin', 'addon', 'json', 'dynamic'];
}

hook({ resolve = ModuleRequest.resolve, dynamicInstantiate }) {
// Use .bind() to avoid giving access to the Loader instance when it is
// called as this.resolver(...);
Expand Down Expand Up @@ -134,5 +130,6 @@ class Loader {
return module.namespace();
}
}
Loader.validFormats = ['esm', 'cjs', 'builtin', 'addon', 'json', 'dynamic'];
Object.setPrototypeOf(Loader.prototype, null);
module.exports = Loader;

0 comments on commit 32704fd

Please sign in to comment.