diff options
author | Shelley Vohr <shelley.vohr@gmail.com> | 2020-09-01 05:51:09 +0300 |
---|---|---|
committer | Shelley Vohr <shelley.vohr@gmail.com> | 2020-09-04 21:18:33 +0300 |
commit | 89f2d465cb4ced4fe27725f38ec6143e19136e7b (patch) | |
tree | 46ae86529c7655d3f2596b9c12a7e25ecbf8d2e8 /src/env.h | |
parent | 8bdbacf39b8d51f747a8d8960af8b808d3cf2668 (diff) |
src: add get/set pair for env context awareness
PR-URL: https://github.com/nodejs/node/pull/35024
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h index b1367c2660f..16546fdd494 100644 --- a/src/env.h +++ b/src/env.h @@ -1068,6 +1068,9 @@ class Environment : public MemoryRetainer { void PrintSyncTrace() const; inline void set_trace_sync_io(bool value); + inline void set_force_context_aware(bool value); + inline bool force_context_aware() const; + // This stores whether the --abort-on-uncaught-exception flag was passed // to Node. inline bool abort_on_uncaught_exception() const; |