Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 81cb14b

Browse filesBrowse files
FlarnaBethGriggs
authored andcommitted
doc: clarify that ObjectWrap requires manual cleanup on shutdown
Clarify that ObjectWrap instances are not destroyed on process or worker shutdown and require manual destruction to avoid resource leaks. PR-URL: #40074 Fixes: #38816 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 0df47d5 commit 81cb14b
Copy full SHA for 81cb14b

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/addons.md‎

Copy file name to clipboardExpand all lines: doc/api/addons.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,10 @@ provided by the underlying V8 JavaScript engine. They are subject to change
965965
or removal at any time. They are not documented by Node.js or V8, and they
966966
should never be used outside of testing.
967967

968+
During shutdown of the process or worker threads destructors are not called
969+
by the JS engine. Therefore it's the responsibility of the user to track
970+
these objects and ensure proper destruction to avoid resource leaks.
971+
968972
### Factory of wrapped objects
969973

970974
Alternatively, it is possible to use a factory pattern to avoid explicitly

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.