google/closure-compiler

String.fromCharCode optimization

Open

#3606 aperta il 27 mag 2020

Vedi su GitHub
 (10 commenti) (0 reazioni) (0 assegnatari)Java (1197 fork)batch import
P4featgood first issue

Metriche repository

Star
 (7176 star)
Metriche merge PR
 (Merge medio 12g 15h) (1 PR mergiata in 30 g)

Descrizione

I used: https://closure-compiler.appspot.com/home

Input code: document.write(String.fromCharCode(115));

Expected output: document.write("s")

Actual output: document.write(String.fromCharCode(115));

I expected the String.fromCharCode function to be removed to just the resulting character.

Guida contributor