Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cpuprofiler] Check navigator variable before usage #21698

Merged
merged 4 commits into from
Apr 5, 2024

Conversation

Its-Just-Nans
Copy link
Contributor

Hello,

This PR fix the bug:
When you compile a project with --cpuprofiler options, you can't use it in nodejs anymore (the index.js will crash).

This PR enable the user to compile his project with the --cpuprofiler options and then use it both in nodeJS and the browser

src/cpuprofiler.js Outdated Show resolved Hide resolved
src/cpuprofiler.js Outdated Show resolved Hide resolved
@sbc100 sbc100 enabled auto-merge (squash) April 5, 2024 18:55
@sbc100 sbc100 changed the title Check navigator variable before usage [cpuprofiler] Check navigator variable before usage Apr 5, 2024
@sbc100 sbc100 merged commit 03b943d into emscripten-core:main Apr 5, 2024
29 checks passed
impact-maker pushed a commit to impact-maker/emscripten that referenced this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants