Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Bedford <guybedford@gmail.com>2020-02-18 13:43:10 +0300
committerGuy Bedford <guybedford@gmail.com>2020-02-27 00:21:56 +0300
commit49ad16104fb467e5e76049950830b15f4793bc7c (patch)
treebb9bcf36e1a60fc22079bdd6cd844cb03fea5d27 /src/module_wrap.cc
parent8824229787dd7e28c14bdb6e5f3dcb8dd5ed813d (diff)
module: disable conditional exports, self resolve warnings
PR-URL: https://github.com/nodejs/node/pull/31845 Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r--src/module_wrap.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
index 350e395ebf4..5d758bac620 100644
--- a/src/module_wrap.cc
+++ b/src/module_wrap.cc
@@ -1075,7 +1075,6 @@ Maybe<URL> ResolveExportsTarget(Environment* env,
return Nothing<URL>();
}
CHECK(!try_catch.HasCaught());
- ProcessEmitExperimentalWarning(env, "Conditional exports");
return resolved;
}
} else if (key_str == "default") {
@@ -1096,7 +1095,6 @@ Maybe<URL> ResolveExportsTarget(Environment* env,
return Nothing<URL>();
}
CHECK(!try_catch.HasCaught());
- ProcessEmitExperimentalWarning(env, "Conditional exports");
return resolved;
}
}
@@ -1312,7 +1310,6 @@ Maybe<URL> PackageResolve(Environment* env,
}
}
if (found_pjson && pcfg->name == pkg_name && !pcfg->exports.IsEmpty()) {
- ProcessEmitExperimentalWarning(env, "Package name self resolution");
if (pkg_subpath == "./") {
return Just(URL("./", pjson_url));
} else if (!pkg_subpath.length()) {