Skip to content

Commit deb2f53

Browse files
committed
Select the OpenJDK tests for changes to the web build, which now makes the VM they run on
1 parent 2816281 commit deb2f53

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎scripts/jtreg/select.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ const root = join(import.meta.dirname, "..", "..");
1515
const passingFile = "test/jtreg/passing.txt";
1616

1717
// TypeScript the tests load: everything src/node.ts (the VM each test runs on),
18-
// the runner and this selection import, followed through their imports. Other .ts files under
19-
// src/ and scripts/ (the page API, the web build) cannot change a test's result.
18+
// the web build that bundles it into dist/node.js, the runner and this
19+
// selection import, followed through their imports. Other .ts files under
20+
// src/ and scripts/ (the page API) cannot change a test's result.
2021
function loaded(): Set<string> {
2122
const seen = new Set<string>();
2223
const visit = (file: string) => {
@@ -26,6 +27,7 @@ function loaded(): Set<string> {
2627
for (const m of text.matchAll(/(?:from|import)\s*\(?\s*["'](\.{1,2}\/[^"']+\.ts)["']/g)) visit(join(dirname(file), m[1]));
2728
};
2829
visit("src/node.ts");
30+
visit("scripts/build-web.ts");
2931
visit("scripts/jtreg/run.ts");
3032
visit("scripts/jtreg/select.ts");
3133
return seen;

0 commit comments

Comments
 (0)