Skip to content

Conversation

juj
Copy link
Collaborator

@juj juj commented Oct 2, 2025

Annotate browser tests that require SAB by attribute, or renaming test to have word 'thread' in it.

@juj
Copy link
Collaborator Author

juj commented Oct 2, 2025

Closing in favor of #25469

@juj juj closed this Oct 2, 2025
@juj juj reopened this Oct 2, 2025
@juj
Copy link
Collaborator Author

juj commented Oct 2, 2025

Reopening given the feedback in #25467 (comment)

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

The actually non-test change here seems specific to file_packager. Perhaps you could mention that in the PR title? Its only not specific to FF, right? How about something like: "Avoid ES6 constructs in file_packager output"?

Its kind of a shame the file packager output often is covered by babel since its embedded in the generated code, but we also have the standalone mode.

Can you added a standalone file packager test to the test-node-compat and confirm that it fails before and after this PR with the oldest support node version (12.22.9).

@juj juj changed the title Fixes to run on Firefox 78 ESR Avoid ES6 constructs in file_packager output, and support browser harness without SharedArrayBuffer Oct 2, 2025
@juj
Copy link
Collaborator Author

juj commented Oct 2, 2025

Can you added a standalone file packager test to the test-node-compat and confirm that it fails before and after this PR with the oldest support node version (12.22.9).

I don't have Node.js 12, and working on ensuring the browser suite works on Node.js 12 seems like a separate pile of work. I'm verifying these PRs on Firefox atm, and that is already enough to get my table full.

@juj juj force-pushed the firefox_78_esr_fixes branch from 85589af to b5ccee9 Compare October 2, 2025 16:51
@sbc100
Copy link
Collaborator

sbc100 commented Oct 2, 2025

Can you added a standalone file packager test to the test-node-compat and confirm that it fails before and after this PR with the oldest support node version (12.22.9).

I don't have Node.js 12, and working on ensuring the browser suite works on Node.js 12 seems like a separate pile of work. I'm verifying these PRs on Firefox atm, and that is already enough to get my table full.

Ok, I'll split out of the file_packager stuff maybe, and you can land the FF browser test stuff here.

sbc100 pushed a commit to sbc100/emscripten that referenced this pull request Oct 2, 2025
This allows the generated code to run on older engines.

Unlike the majority of the emscripten-generated code the file packager
output does not always get run through babel when targeting older
engines.

Specifically tests the standalone file packages code on the oldest
support node version.   This also required removing the use of the
`fs/Promises` packages which is not present in older versions of node.

Split out from emscripten-core#25459
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2025
This allows the generated code to run on older engines.

Unlike the majority of the emscripten-generated code the file packager
output does not always get run through babel when targeting older
engines.

Specifically tests the standalone file packages code on the oldest
support node version.   This also required removing the use of the
`fs/Promises` packages which is not present in older versions of node.

Split out from emscripten-core#25459
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2025
This allows the generated code to run on older engines.

Unlike the majority of the emscripten-generated code the file packager
output does not always get run through babel when targeting older
engines.

Specifically tests the standalone file packages code on the oldest
support node version.   This also required removing the use of the
`fs/Promises` packages which is not present in older versions of node.

Split out from emscripten-core#25459
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2025
This allows the generated code to run on older engines.

Unlike the majority of the emscripten-generated code the file packager
output does not always get run through babel when targeting older
engines.

Specifically tests the standalone file packages code on the oldest
support node version.   This also required removing the use of the
`fs/Promises` packages which is not present in older versions of node.

Split out from emscripten-core#25459
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2025
This allows the generated code to run on older engines.

Unlike the majority of the emscripten-generated code the file packager
output does not always get run through babel when targeting older
engines.

Specifically tests the standalone file packages code on the oldest
support node version.   This also required removing the use of the
`fs/Promises` packages which is not present in older versions of node.

Split out from emscripten-core#25459
…in them, or have be annotated with @requires_shared_array_buffer decorator.
@juj juj force-pushed the firefox_78_esr_fixes branch from b5ccee9 to 29506cf Compare October 2, 2025 19:37
@juj juj changed the title Avoid ES6 constructs in file_packager output, and support browser harness without SharedArrayBuffer Separate out multithreading tests in browser harness Oct 2, 2025
@juj juj force-pushed the firefox_78_esr_fixes branch from 640411f to 29b5adc Compare October 2, 2025 19:39
@juj
Copy link
Collaborator Author

juj commented Oct 2, 2025

Ok, updated with the browser suite reorganization bits.

sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 2, 2025
This allows the generated code to run on older engines.

Unlike the majority of the emscripten-generated code the file packager
output does not always get run through babel when targeting older
engines.

Specifically tests the standalone file packages code on the oldest
support node version.   This also required removing the use of the
`fs/Promises` packages which is not present in older versions of node.

Split out from emscripten-core#25459
@juj juj enabled auto-merge (squash) October 2, 2025 20:05
@juj juj merged commit 8f6e552 into emscripten-core:main Oct 2, 2025
33 checks passed
sbc100 added a commit that referenced this pull request Oct 2, 2025
This allows the generated code to run on older engines.

Unlike the majority of the emscripten-generated code the file packager
output does not always get run through babel when targeting older
engines.

Specifically tests the standalone file packages code on the oldest
support node version.   This also required removing the use of the
`fs/Promises` packages which is not present in older versions of node.

Split out from #25459
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.

2 participants