summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
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_;