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

fix: cleanup timer and reuse exports - #229

Merged
JonasBa merged 3 commits into
mainfrom
jb/fix/vitest-crash
Jan 8, 2024
Merged

fix: cleanup timer and reuse exports#229
JonasBa merged 3 commits into
mainfrom
jb/fix/vitest-crash

Conversation

@JonasBa

Copy link
Copy Markdown
Contributor

Fix#228 (tested by linking the built module to the reproducible code from issue).

@JonasBa
JonasBa requested a review from anonrigJanuary 8, 2024 14:54
}

napi_value external;
if (napi_create_external(env, profiler, nullptr, nullptr, &external) !=

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

this was unnecessary since NAPI_INIT provides the exports napi_value already

Comment threadbindings/cpu_profiler.cc Outdated
Comment threadbindings/cpu_profiler.cc Outdated
@anonrig

Copy link
Copy Markdown
Contributor

Somehow, we have a lint issue, but GitHub workflow doesn't give us a warning?

@JonasBa

Copy link
Copy Markdown
ContributorAuthor

I'm going to check, it should be failing, but I also noticed some formatting changes were applied that shouldn't be

@JonasBa

Copy link
Copy Markdown
ContributorAuthor

@anonrig let me fix the linter separately, I want to merge this so we fix the issue and unblock the user. I'll followup with the linter change

@JonasBa
JonasBa merged commit 779867d into mainJan 8, 2024
@JonasBa
JonasBa deleted the jb/fix/vitest-crash branch January 8, 2024 17:23
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@sentry/profiling-node crashes vitest

2 participants

@JonasBa@anonrig