Skip to content

Commit 0f1f7e6

Browse files
committed
fixup!
1 parent 8e5eb0b commit 0f1f7e6

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

napi-inl.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -579,15 +579,9 @@ inline Maybe<T> Just(const T& t) {
579579

580580
inline 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

592586
inline Env::Env(napi_env env) : BasicEnv(env) {}
593587

napi.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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
//

0 commit comments

Comments
 (0)