google/closure-compiler

String.fromCharCode optimization

Aperta

#3606 aperta il 27 mag 2020

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

Metriche repository

Star
 (7176 stelle)
Metriche merge PR
 (Merge medio 3g 4h) (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