From 82ed10dfb6a3bdce15c77856fc4ed40abc628a39 Mon Sep 17 00:00:00 2001 From: Toru Nagashima Date: Mon, 13 Apr 2020 10:58:32 +0900 Subject: [PATCH] make test262 success on Windows --- bin/run_test262.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/run_test262.js b/bin/run_test262.js index 0c5a788eb..456c0fae6 100644 --- a/bin/run_test262.js +++ b/bin/run_test262.js @@ -20,6 +20,9 @@ run( { testsDirectory: path.dirname(require.resolve("test262/package.json")), skip: test => (test.attrs.features && unsupportedFeatures.some(f => test.attrs.features.includes(f))), - whitelist: fs.readFileSync("./bin/test262.whitelist", "utf8").split("\n").filter(v => v) + whitelist: fs.readFileSync("./bin/test262.whitelist", "utf8") + .split("\n") + .filter(Boolean) + .map(filename => path.sep !== "/" ? filename.split("/").join(path.sep) : filename) } )