npm / @babel/generator / 8.0.6
@babel/generator 8.0.6
- Source
- https://github.com/babel/babel
- Tag scanned
v8.0.6- Directory
packages/babel-generator- Compared with
v8.0.5(0 signals introduced since)- Files
- 1152 scanned, 148 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 62 info
- Scan time
- 7.1 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 7 of 7 warn and critical signals; 7 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-14 19:38
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/comments/dynamic-import/input.js:1:6/*0*//*4*/dismissed Test fixture exercising comments inside a dynamic import call with a literal specifier.Reasoning
The snippet shows import("foo") with a string literal specifier and comments between tokens. The fixture exists to test comment preservation around dynamic import, and the scanner's non-literal check does not account for the literal here. This is a scanner test fixture, not malicious code.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/comments/dynamic-import/output.js:1:6/*0*/; /*4*/dismissed Formatted expected output of a comment-handling test for dynamic import with a literal specifier.Reasoning
This is the formatted output counterpart of the input fixture. It has the same literal "foo" specifier and comment placement, so the non-literal warning is a false positive from the scanner's own test suite.
-
info
identifier-low-lengthpackages/babel-generator/test/fixtures/edgecase/async-generator/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/edgecase/async-generator/output.js:1:1 -
"undefined" === typeof Aura && ; Aura. || ; Aura. || -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/edgecase/new-precedence/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/edgecase/new-precedence/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/def-site-variance/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/def-site-variance/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/enum-declaration/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/enum-declaration/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/qualified-generic-type/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/qualified-generic-type/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/type-union-intersection/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/type-union-intersection/output.js:1:1 -
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/import-phases/source-expression-comments/input.js:1:8/* 0 */./* 2 *//* 3 */dismissed Import-phase test fixture for import.source with comments around a literal specifier.Reasoning
This is a source-phase import expression (import.source) with a literal "foo" argument and comments, in a fixture directory named for import phases. It is a parser or formatter test case, not an attack pattern.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/import-phases/source-expression-comments/output.js:1:8/* 0 */. /* 7 */;dismissed Expected formatted output for the import.source comment test fixture.Reasoning
This is the expected-output side of the same import-phases fixture. It shows the same import.source("foo") form reformatted, with no sign of obfuscation.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/import-phases/source-expression-options-comments/input.js:1:8/* 0 */./* 2 *//* 3 */dismissed Test fixture for import.source with an options argument and comments.Reasoning
This fixture is import.source with a literal "foo" argument plus an options argument and comments. It tests syntax handling for import phases, and the literal specifier means the non-literal warning does not apply.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/import-phases/source-expression-options-comments/output.js:1:8/* 0 */. /* 9 */;dismissed Expected formatted output for the import.source-with-options comment test.Reasoning
Formatted expected output of the import.source options fixture, with the same literal specifier and no dynamic or hidden behavior.
-
"😂"; "\uD83D_\uDE02" `😂`; /foobar/g; -
"😂"; "\uD83D_\uDE02" `😂`; /foobar/g; -
5;5;50;5e4;"foobar";" ";"\n\r";"😂";"\uD83D_\uDE02"`😂`;/foobar/g;null;true;false;5;2;56;31; -
5;5;50;5e4;"foobar";" ";"\n\r";"😂";"\uD83D_\uDE02"`😂`;/foobar/g;null;true;false;5;2;56;31; -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/exponentiation/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/exponentiation/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/in-inside-for/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/in-inside-for/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/new-callee/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/new-callee/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/nullish-coalescing/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/nullish-coalescing/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/sequence-expressions/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/sequence-expressions/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/ts-function-type/input.ts:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/ts-function-type/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/ts-new-callee/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/ts-new-callee/output.js:1:1 -
info
whitespace-anomalypackages/babel-generator/test/fixtures/regression/comment-before-parentheses-return-arg-createParenthesizedExpressions/input.js:2:1 -
info
whitespace-anomalypackages/babel-generator/test/fixtures/regression/comment-before-parentheses-return-arg/input.js:2:1 -
info
whitespace-anomalypackages/babel-generator/test/fixtures/sourcemaps/comment-before-parentheses-return-arg-createParenthesizedExpressions/input.js:2:1 -
info
whitespace-anomalypackages/babel-generator/test/fixtures/sourcemaps/comment-before-parentheses-return-arg/input.js:2:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/types/LogicalExpression/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/types/LogicalExpression/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/cast-need-parentheses/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/cast-need-parentheses/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/satisfies-parentheses/input.ts:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/satisfies-parentheses/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/types-mapped-as/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/types-mapped-as/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/types-parameter-const-modifier/input.ts:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/types-parameter-const-modifier/output.js:1:1 -
); ; });likely benign Test-suite code that builds and evaluates a function from generated source code.Reasoning
The snippet shows new Function(generate(mem).code) in a test file. Here the body comes from a code generator, which is typical of a compiler or transform test harness that evaluates generated output. A runtime-built Function is still a real dynamic-execution pattern, so the residual doubt is real. Without the surrounding test context, I rate it likely benign.
Reproduce This Scan
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
&&