summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorDolapo Toki <dolapotoki@gmail.com>2018-10-12 11:11:44 -0700
committerAnna Henningsen <anna@addaleax.net>2018-10-16 13:46:30 +0200
commit91fe7e5ad28a7bc75948f380a051aae156131b37 (patch)
treeeeb5c67d90ad61511da1276759e06f28a23e161f /src/env.h
parentc34eae5f882c8bb4d58b492caf97cdb08b1dbbcb (diff)
downloadandroid-node-v8-91fe7e5ad28a7bc75948f380a051aae156131b37.tar.gz
android-node-v8-91fe7e5ad28a7bc75948f380a051aae156131b37.tar.bz2
android-node-v8-91fe7e5ad28a7bc75948f380a051aae156131b37.zip
src: add deprecation warning to errname()
PR-URL: https://github.com/nodejs/node/pull/23597 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index 1eb333b0ef..3daa48f9cb 100644
--- a/src/env.h
+++ b/src/env.h
@@ -843,6 +843,12 @@ class Environment {
return current_value;
}
+ inline bool EmitErrNameWarning() {
+ bool current_value = emit_err_name_warning_;
+ emit_err_name_warning_ = false;
+ return current_value;
+ }
+
typedef void (*native_immediate_callback)(Environment* env, void* data);
// cb will be called as cb(env, data) on the next event loop iteration.
// obj will be kept alive between now and after the callback has run.
@@ -929,6 +935,7 @@ class Environment {
bool printed_error_;
bool abort_on_uncaught_exception_;
bool emit_env_nonstring_warning_;
+ bool emit_err_name_warning_;
size_t makecallback_cntr_;
std::vector<double> destroy_async_id_list_;