Skip to content

The agent that grows with you

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

liuhao102431a9143ec622
diff --git a/tools/approval_detection.py b/tools/approval_detection.py
index f0612c5d701..755d15f94b4 100644
--- a/tools/approval_detection.py
+++ b/tools/approval_detection.py
@@ -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 = {