Skip to content

fix(jco): support QuickJS 0.5 in the TLS fixture - #2310

Merged
vados-cosmonic merged 1 commit into
bytecodealliance:mainfrom
vados-cosmonic:fix/quickjs-tls-fixture
Oct 24, 2026
Merged

vados-cosmonic merged 1 commit into
bytecodealliance:mainfrom
vados-cosmonic:fix/quickjs-tls-fixture

Conversation

@vados-cosmonic

Copy link
Copy Markdown
Collaborator

QuickJS 0.5.0 gets past the TLS resource linker failure expected by the HTTPS fixture, exposing a missing TextEncoder during module evaluation. This causes the CI failure in #2307.

Inject Jco's globals when bundling the fixture and let its virtual modules resolve through the builtin plugin. Keep the expected linker failure for QuickJS versions before 0.5.0; require successful componentization and verify the TLS, socket, and shared IO imports for newer versions.

This fix is based on main and retains its QuickJS 0.4.5 dependency, so it can land before #2307 is rebased.

Validation on Linux with Node.js 24.21.0:

  • All 12 HTTPS tests passed with QuickJS 0.4.5 and again with 0.5.0.
  • All 20 HTTPS/socket tests passed with chore(jco): bump componentize-qjs #2307's exact diff applied on top of this fix.
  • Jco and jco-std TypeScript builds, formatting, lint, and commit-message checks passed.

The local test setup temporarily aligned ComponentizeJS with Jco's installed preview2-shim instance; dependency links were restored afterward.

@vados-cosmonic
vados-cosmonic added this pull request to the merge queue Oct 24, 2026
Merged via the queue into bytecodealliance:main with commit 74ccba3 Oct 24, 2026
66 checks passed
@vados-cosmonic
vados-cosmonic deleted the fix/quickjs-tls-fixture branch October 24, 2026 04:38
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.

1 participant