Nicolò Ribaudo 2691868904 Remove unused variables with the Babel plugin
- functions were already removed
- variables can be removed when their initializer does not have side effects
- classes can be removed when they have no static blocks

Fixes #21337
2026-05-26 16:35:57 +02:00

15 lines
181 B
JavaScript

let a = 1;
let b = a, c = 4;
let d = null && sideEffect();
let e = null || sideEffect();
let f = 5;
let g = 6;
use(c);
if (PDFJSDev.test('TRUE')) {
use(f);
} else {
use(g);
}