google / google/closure-compiler
Improve flow sensitive inlining.
Open
enhancement
P3
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
Input:
``` js
function A(d, a, c) {
var b,x;
return!(isNaN(x = a) || isNaN(b = c) || x >>> 0 < b >>> 0);
}
```
Output:
``` js
// after simple optimization
function A(d, a, c) {
var b;
return!(isNaN(a) || isNaN(b = c) || a >>> 0 < b >>> 0);
}
```
Expected:
``` js
// Why not do that ?
function A(d, a, c) {
return!(isNaN(a) || isNaN( c) || a >>> 0 < c >>> 0);
}
```
Contributor guide
Assessment
This issue has not been assessed yet.