Skip to content

Conversation

@Lxxyx
Copy link
Member

@LxxyxLxxyx commented Dec 22, 2020

Related Issues

Fixes: #36598

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@RaisinTen
Copy link
Member

if(ref)channel=ref.get();

Should't this too be ref.deref()?

@Lxxyx
Copy link
MemberAuthor

if(ref)channel=ref.get();

Should't this too be ref.deref()?

WeakReference is export by internalBinding('util');, not WeakRef.

@LxxyxLxxyxforce-pushed the fix-diagnostics_channel-error branch from 7429dce to 2294439CompareDecember 22, 2020 15:30
Copy link
Contributor

@aduh95aduh95 left a comment

Choose a reason for hiding this comment

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

Thanks!
For reference, WeakRef is not available through primordials because it can be disable by the V8 flag --no-harmony-weak-refs (although using this flag crashes node, oh well).

@aduh95aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Dec 22, 2020
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 22, 2020
@nodejs-github-bot
Copy link
Collaborator

@lpinca
Copy link
Member

I think the subsystem in commit message should be "lib".

@nodejs-github-bot
Copy link
Collaborator

@Lxxyx
Copy link
MemberAuthor

I think the subsystem in commit message should be "lib".

Thanks for the reply, but I'd like to know why the subsystem is lib but not diagnostics_channel.

@lpinca
Copy link
Member

My comment is based on previous commits like c6c36c3.

@LxxyxLxxyx changed the title diagnostics_channel: fix hasSubscribers errorlib: fix diagnostics_channel hasSubscribers errorDec 23, 2020
@LxxyxLxxyxforce-pushed the fix-diagnostics_channel-error branch from 2294439 to 1390313CompareDecember 23, 2020 06:37
@Lxxyx
Copy link
MemberAuthor

My comment is based on previous commits like c6c36c3.

Thanks, the subsystem in commit message and pull request title is lib now.

@aduh95aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 23, 2020
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 23, 2020
@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
Member

Landed in 2d40e3f

@TrottTrott closed this Dec 24, 2020
@TrottTrottforce-pushed the fix-diagnostics_channel-error branch from 1390313 to 2d40e3fCompareDecember 24, 2020 15:12
@TrottTrott merged commit 2d40e3f into nodejs:masterDec 24, 2020
@LxxyxLxxyx deleted the fix-diagnostics_channel-error branch December 24, 2020 15:24
danielleadams pushed a commit that referenced this pull request Jan 12, 2021
Fixes: #36598 PR-URL: #36599 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@danielleadamsdanielleadams mentioned this pull request Jan 12, 2021
targos pushed a commit that referenced this pull request May 1, 2021
Fixes: #36598 PR-URL: #36599 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@danielleadamsdanielleadams mentioned this pull request May 3, 2021
@MesteeryMesteery added the diagnostics_channel Issues and PRs related to diagnostics channel label Oct 13, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.diagnostics_channelIssues and PRs related to diagnostics channel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diagnostics_channel: hasSubscribers throw TypeError: WeakRefPrototypeGet is not a function on Node 15.4.0

7 participants

@Lxxyx@RaisinTen@nodejs-github-bot@lpinca@Trott@aduh95@Mesteery