Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Sumary clarification#3824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
joaquinelio wants to merge1 commit intojavascript-tutorial:master
base:master
Choose a base branch
Loading
fromjoaquinelio:patch-21
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -476,8 +476,8 @@ You can [open this example in the sandbox](sandbox:weakref-finalizationregistry)

## Summary

`WeakRef` - designed to create weak references to objects, allowingthemtobe deleted from memoryby the garbage collector if there arenolongerstrong referencesto them.
Thisis beneficial for addressing excessivememoryusageandoptimizing the utilization ofsystemresources in applications.
`WeakRef` -- designed to create weak references to objects, allowingthe JavaScript enginetoremove them from memorywhenno strong referencesremain.
Thishelps optimizememory and systemresource usage automatically.

`FinalizationRegistry` - is a tool for registering callbacks, that are executed whenobjects that are no longer strongly referenced, are destroyed.
This allowsreleasingresources associated with the object orperforming other necessary operations beforedeletingthe object from memory.
`FinalizationRegistry` -- is a tool for registering callbacks that are executed whenan object without strong references is deleted.
This allowsthe programmer manually releaseresources associated with the object orperform additional cleanup tasks before the object is fully removed from memory.

[8]ページ先頭

©2009-2025 Movatter.jp