Files
Marja Hölttä ea8fdca9d8 [d8] More robust bundle handling
1. Keep the module list alive for the whole duration of the program -
this way workers can dynamically import modules, too.

2. Support executing multiple files containing bundles

3. Handle bundles which try to declare a duplicate module.

Fixed: 564550564
Change-Id: If9e5e1b2097da94f25bdb11f33840570ca9e0f7a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8468371
Commit-Queue: Marja Hölttä <marja@chromium.org>
Reviewed-by: Olivier Flückiger <olivf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#110143}
2026-09-29 00:00:17 -07:00
..
2026-09-29 00:00:17 -07:00
2026-02-06 08:34:23 -08:00

JavaScript tests with expected output

Tests in test/message pass if the output matches the expected output. Message tests are particularly useful when checking for exact error messages.

Tests and their expected output must have the same filename, with the .js and .out extension.

foo.js
foo.out

You can use a regex in the expected output instead of the exact path:

*%(basename)s:7: SyntaxError: Detected cycle while resolving name 'a'

Empty lines are ignored in the comparison, but whitespaces are not.

Exact details of the test runner are in testcfg.py.