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) {
579
579
580
580
inline BasicEnv::BasicEnv (node_addon_api_basic_env env) : _env(env) {}
581
581
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 {
584
583
return _env;
585
584
}
586
- #else
587
- inline BasicEnv::operator napi_env () const {
588
- return _env;
589
- }
590
- #endif
591
585
592
586
inline Env::Env (napi_env env) : BasicEnv(env) {}
593
587
Original file line number Diff line number Diff line change @@ -331,11 +331,8 @@ class BasicEnv {
331
331
#endif // NAPI_VERSION > 5
332
332
public:
333
333
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 ;
339
336
340
337
// Without these operator overloads, the error:
341
338
//
You can’t perform that action at this time.
0 commit comments