Skip to content

Commit 82ed10d

Browse files
mysticateamarijnh
authored andcommitted
make test262 success on Windows
1 parent ec7cbd1 commit 82ed10d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/run_test262.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ run(
2020
{
2121
testsDirectory: path.dirname(require.resolve("test262/package.json")),
2222
skip: test => (test.attrs.features && unsupportedFeatures.some(f => test.attrs.features.includes(f))),
23-
whitelist: fs.readFileSync("./bin/test262.whitelist", "utf8").split("\n").filter(v => v)
23+
whitelist: fs.readFileSync("./bin/test262.whitelist", "utf8")
24+
.split("\n")
25+
.filter(Boolean)
26+
.map(filename => path.sep !== "/" ? filename.split("/").join(path.sep) : filename)
2427
}
2528
)

0 commit comments

Comments
 (0)