Skip to content

Commit

Permalink
Review notes
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Sep 26, 2023
1 parent 82a4aaa commit 4930b18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/internal/modules/run_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function shouldUseESMLoader(mainPath) {

const { readPackageScope } = require('internal/modules/cjs/loader');
const pkg = readPackageScope(mainPath);
// No need to guard `pkg` as it can only be an object or `false`.
return pkg.data?.type === 'module' || getOptionValue('--experimental-type') === 'module';
}

Expand Down
4 changes: 2 additions & 2 deletions src/node_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class EnvironmentOptions : public Options {
bool experimental_https_modules = false;
bool experimental_wasm_modules = false;
bool experimental_import_meta_resolve = false;
std::string input_type;
std::string type;
std::string input_type; // Value of --input-type
std::string type; // Value of --experimental-type
std::string experimental_policy;
std::string experimental_policy_integrity;
bool has_policy_integrity_string = false;
Expand Down

0 comments on commit 4930b18

Please sign in to comment.