google / google/closure-compiler

String.fromCharCode optimization

Open
#3,606 10 comments 0 reactions 0 assignees View on GitHub
feat good first issue P4
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.