Skip to content

Commit

Permalink
fix windows ignoring skiplist
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Aug 6, 2018
1 parent 3ccad6d commit d904ebb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/_external/test262/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from "assert"
import execa from "execa"
import globby from "globby"
import { basename, resolve } from "path"
import { basename, resolve, sep } from "path"
import fs from "fs-extra"
import test262Parser from "test262-parser"

Expand All @@ -12,7 +12,9 @@ const test262Tests = globby.sync(
["test/language/module-code/*.js", "!**/*_FIXTURE.js"],
{
absolute: true,
cwd: test262Path
cwd: test262Path,
// https://github.com/sindresorhus/globby/issues/38
transform: (entry) => sep === "\\" ? entry.replace(/\//g, "\\") : entry
}
)

Expand Down Expand Up @@ -45,7 +47,6 @@ function loadSkiplist() {
.map((line) => line.trim())
.filter((line) => line !== "")
.reduce((comment, line) => {

if (line.startsWith("#")) {
if (comment) {
throw new Error(
Expand Down

0 comments on commit d904ebb

Please sign in to comment.