diff options
author | Rongjian Zhang <pd4d10@gmail.com> | 2019-11-24 07:40:40 +0300 |
---|---|---|
committer | Guy Bedford <guybedford@gmail.com> | 2019-12-05 06:36:37 +0300 |
commit | aa4c57ae7e74a623f5255a7f05a6ff9d5bc335d0 (patch) | |
tree | 9d7ab21bd8ace8e731ae5ecf9c79489236fe0455 /src/module_wrap.cc | |
parent | 110dc02747473ae8193d71c1aa9cbedd71bfaa01 (diff) |
module: add warnings for experimental flags
PR-URL: https://github.com/nodejs/node/pull/30617
Fixes: https://github.com/nodejs/node/issues/30600
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r-- | src/module_wrap.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 3c3d5683292..2fa8ba498ed 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -7,6 +7,7 @@ #include "util-inl.h" #include "node_contextify.h" #include "node_watchdog.h" +#include "node_process.h" #include <sys/stat.h> // S_IFDIR @@ -962,6 +963,7 @@ Maybe<URL> ResolveExportsTarget(Environment* env, Maybe<URL> resolved = ResolveExportsTarget(env, pjson_url, conditionalTarget, subpath, pkg_subpath, base, false); if (!resolved.IsNothing()) { + ProcessEmitExperimentalWarning(env, "Conditional exports"); return resolved; } } @@ -1267,6 +1269,7 @@ Maybe<URL> PackageResolve(Environment* env, Maybe<URL> self_url = ResolveSelf(env, specifier, base); if (self_url.IsJust()) { + ProcessEmitExperimentalWarning(env, "Package name self resolution"); return self_url; } |