review: note why Deno maps to no value-taking globals

Per review polish: a comment on the empty deno set in _INTERPRETER_WITH_ARG
saves future readers a double-take — Deno's inline-script entry is the bare
eval subcommand, and its dash flags use = values.
This commit is contained in:
liuhao1024
2026-09-19 20:48:07 +08:00
committed by Teknium
parent 886df27c6e
commit 31a9143ec6

View File

@@ -596,6 +596,9 @@ _INTERPRETER_WITH_ARG = {
"php": {"-c", "-d", "-z"},
"powershell": {"-configurationname", "-custompipename", "-executionpolicy", "-inputformat", "-outputformat",
"-settingsfile", "-version", "-windowstyle", "-workingdirectory"},
# Deno deliberately maps to no value-taking globals: its inline-script entry is the
# bare `eval` subcommand (first-arg fast path below), and its dash flags that precede
# `eval` (--ext, --no-check, ...) never swallow the next token as a value.
"bun": {"--config", "--cwd", "--env-file", "--preload", "--require"}, "deno": set(),
}
_READ_TOOL_EXEC_FLAGS = {