JS: fixup for execa.shell and execa.shellSync models

This commit is contained in:
Esben Sparre Andreasen
2020-12-22 09:06:18 +01:00
parent ba714a1214
commit ab4f3ea259
3 changed files with 26 additions and 5 deletions

View File

@@ -18,15 +18,18 @@ private predicate execApi(string mod, string fn, int cmdArg, int optionsArg, boo
shell = false and
(
fn = "node" or
fn = "shell" or
fn = "shellSync" or
fn = "stdout" or
fn = "stderr" or
fn = "sync"
)
or
shell = true and
(fn = "command" or fn = "commandSync")
(
fn = "command" or
fn = "commandSync" or
fn = "shell" or
fn = "shellSync"
)
) and
cmdArg = 0
}