diff options
Diffstat (limited to 'src/module_wrap.h')
-rw-r--r-- | src/module_wrap.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/module_wrap.h b/src/module_wrap.h index 5950c5a1be..ee3740b561 100644 --- a/src/module_wrap.h +++ b/src/module_wrap.h @@ -12,10 +12,15 @@ namespace node { namespace loader { +enum PackageMainCheck : bool { + CheckMain = true, + IgnoreMain = false +}; + v8::Maybe<url::URL> Resolve(Environment* env, const std::string& specifier, const url::URL& base, - bool read_pkg_json = false); + PackageMainCheck read_pkg_json = CheckMain); class ModuleWrap : public BaseObject { public: |