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

fix: cleanup timer and reuse exports #229

Merged
merged 3 commits into from
Jan 8, 2024
Merged

fix: cleanup timer and reuse exports #229

merged 3 commits into from
Jan 8, 2024

Conversation

JonasBa
Copy link
Member

@JonasBa JonasBa commented Jan 8, 2024

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

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

napi_value external;
if (napi_create_external(env, profiler, nullptr, nullptr, &external) !=
Copy link
Member Author

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

bindings/cpu_profiler.cc Outdated Show resolved Hide resolved
bindings/cpu_profiler.cc Outdated Show resolved Hide resolved
@anonrig
Copy link
Contributor

anonrig commented Jan 8, 2024

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

@JonasBa
Copy link
Member Author

JonasBa commented Jan 8, 2024

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
Member Author

JonasBa commented Jan 8, 2024

@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 main Jan 8, 2024
42 checks passed
@JonasBa JonasBa deleted the jb/fix/vitest-crash branch January 8, 2024 17:23
Sign up for free to 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