File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -579,15 +579,9 @@ inline Maybe<T> Just(const T& t) {
579579
580580inline BasicEnv::BasicEnv (node_addon_api_basic_env env) : _env(env) {}
581581
582- #ifdef NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER
583- inline BasicEnv::operator node_api_nogc_env () const {
582+ inline BasicEnv::operator node_addon_api_basic_env () const {
584583 return _env;
585584}
586- #else
587- inline BasicEnv::operator napi_env () const {
588- return _env;
589- }
590- #endif
591585
592586inline Env::Env (napi_env env) : BasicEnv(env) {}
593587
Original file line number Diff line number Diff line change @@ -331,11 +331,8 @@ class BasicEnv {
331331#endif // NAPI_VERSION > 5
332332 public:
333333 BasicEnv (node_addon_api_basic_env env);
334- #ifdef NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER
335- operator node_api_nogc_env () const ;
336- #else
337- operator napi_env () const ;
338- #endif
334+
335+ operator node_addon_api_basic_env () const ;
339336
340337 // Without these operator overloads, the error:
341338 //
You can’t perform that action at this time.
0 commit comments