Skip to content

Add host support for Quanta & fix fixture cache collisions & make eshost usable from test262-harness - #182

Open
ataturkcu wants to merge 3 commits into
tc39:masterfrom
ataturkcu:master
Open

ataturkcu wants to merge 3 commits into
tc39:masterfrom
ataturkcu:master

Conversation

@ataturkcu

Copy link
Copy Markdown

Host support for: Quanta.

Recognise import.defer('./x') and import.source('./x') as module specifiers, tested with quickjs and quanta on language/expressions/dynamic-import (b363f29), fixes 72 tests.

When many tests run in one process, the wrong fixture could be written to the temp directory, Caches key by resolved path and look dependencies up relative to the test's directory.

test262-harness expects supportHosts but harness was crashing at startup, exporting "supportedHosts" as an array derived from SUPPORTED_HOSTS fixes this.

…ness

fixture:
rawSourceCache was keyed by basename nevertheless test262 has many fixtures that share a name and differ in content by director. When many tests run in one process, the wrong fixture could be written to the temp directory. Key the cache by resolved path and look dependencies up relative to the test's directory.

Also recognise import.defer('./x') and import.source('./x') as module specifiers so their fixtures are copied alongside the test. Tested with quickjs and quanta on language/expressions/dynamic-import: fixes 72 tests (test262, b363f29)

test262-harness compatiblity:
test262-harness 10.x reads `supportedHosts` from eshost, but eshost 9 only
exports SUPPORTED_HOSTS (a Set), so the harness crashes at startup with
"Cannot read properties of undefined (reading 'join')". Export
supportedHosts as an array derived from SUPPORTED_HOSTS.
@linusg

linusg commented Sep 30, 2026

Copy link
Copy Markdown
Member

Please confirm that you have read and acknowledge #159.

Comment thread lib/eshost.js Outdated
@ataturkcu

ataturkcu commented Sep 30, 2026 •

Copy link
Copy Markdown
Author

Please confirm that you have read and acknowledge #159.

I have read and acknowledge #159. that i am being maintainer of quanta's eshost.

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