diff options
author | Ry Dahl <ry@tinyclouds.org> | 2020-01-08 14:59:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 14:59:53 -0500 |
commit | 2d5457df15d8c4a81362bb2d185b5c6013faa1d8 (patch) | |
tree | ec851e15cb57c494f839de28abdb5a787487f8a5 /std/xeval/test.ts | |
parent | 7d2d442a77343a3c4ab6c638bd817e51c6cadd2e (diff) |
feat(flags): script arguments come after '--' (#3621)
Diffstat (limited to 'std/xeval/test.ts')
-rw-r--r-- | std/xeval/test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/xeval/test.ts b/std/xeval/test.ts index f6dd70696..30ac6af01 100644 --- a/std/xeval/test.ts +++ b/std/xeval/test.ts @@ -25,7 +25,7 @@ const modTsUrl = import.meta.url.replace(/test.ts$/, "mod.ts"); test(async function xevalCliReplvar(): Promise<void> { const p = run({ - args: [execPath(), modTsUrl, "--replvar=abc", "console.log(abc)"], + args: [execPath(), modTsUrl, "--", "--replvar=abc", "console.log(abc)"], stdin: "piped", stdout: "piped", stderr: "null" @@ -38,7 +38,7 @@ test(async function xevalCliReplvar(): Promise<void> { test(async function xevalCliSyntaxError(): Promise<void> { const p = run({ - args: [execPath(), modTsUrl, "("], + args: [execPath(), modTsUrl, "--", "("], stdin: "null", stdout: "piped", stderr: "piped" |