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/node_binding.cc | |
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/node_binding.cc')
-rw-r--r-- | src/node_binding.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_binding.cc b/src/node_binding.cc index 9890f9e7be9..0d577a8c8e8 100644 --- a/src/node_binding.cc +++ b/src/node_binding.cc @@ -470,7 +470,7 @@ void DLOpen(const FunctionCallbackInfo<Value>& args) { if (mp != nullptr) { if (mp->nm_context_register_func == nullptr) { - if (env->options()->force_context_aware) { + if (env->force_context_aware()) { dlib->Close(); THROW_ERR_NON_CONTEXT_AWARE_DISABLED(env); return false; |