Repository navigation
Add host support for Quanta & fix fixture cache collisions & make eshost usable from test262-harness - #182
Open
ataturkcu wants to merge 3 commits into
Open
Add host support for Quanta & fix fixture cache collisions & make eshost usable from test262-harness#182ataturkcu wants to merge 3 commits into
ataturkcu wants to merge 3 commits into
Conversation
…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.
Member
|
Please confirm that you have read and acknowledge #159. |
linusg
requested changes
Sep 30, 2026
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.