Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Add examples for WeakRef#2403

Merged
queengooborg merged 5 commits intomdn:mainfrom
NiedziolkaMichal:weak-ref
Aug 2, 2023
Merged

Add examples for WeakRef#2403
queengooborg merged 5 commits intomdn:mainfrom
NiedziolkaMichal:weak-ref

Conversation

@NiedziolkaMichal
Copy link
Copy Markdown
Member

Description

Those are examples for WeakRef, its constructor and deref method.

image
In this example, object is garbage collected usually after few seconds.

image

image

Motivation

Additional details

Related issues and pull requests

@NiedziolkaMichal NiedziolkaMichal changed the title Add examples for Weak ref Add examples for WeakRef Jan 6, 2023
@NiedziolkaMichal NiedziolkaMichal mentioned this pull request Jan 6, 2023
94 tasks
Copy link
Copy Markdown
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: is it better to duplicate two examples with the same code, or is it better to just link the same code to two pages (like in #2404)?

@github-actions
Copy link
Copy Markdown

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions Bot added the idle Issues and pull requests with no activity for three months. label Mar 24, 2023
@Josh-Cena Josh-Cena added the Content:JS issues related to JavaScript examples. label Jul 31, 2023
@github-actions github-actions Bot removed the idle Issues and pull requests with no activity for three months. label Aug 1, 2023
@queengooborg queengooborg merged commit 0154448 into mdn:main Aug 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Content:JS issues related to JavaScript examples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants