File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -380,9 +380,6 @@ class Reference : public RefBase {
380
380
381
381
protected:
382
382
inline void Finalize (bool is_env_teardown = false ) override {
383
- if (is_env_teardown) env_teardown_finalize_started_ = true ;
384
- if (!is_env_teardown && env_teardown_finalize_started_) return ;
385
-
386
383
// During env teardown, `~napi_env()` alone is responsible for finalizing.
387
384
// Thus, we don't want any stray gc passes to trigger a second call to
388
385
// `RefBase::Finalize()`. ClearWeak will ensure that even if the
@@ -471,7 +468,6 @@ class Reference : public RefBase {
471
468
reference->Finalize ();
472
469
}
473
470
474
- bool env_teardown_finalize_started_ = false ;
475
471
v8impl::Persistent<v8::Value> _persistent;
476
472
SecondPassCallParameterRef* _secondPassParameter;
477
473
};
You can’t perform that action at this time.
0 commit comments