google / google/closure-compiler

Improve flow sensitive inlining.

Open
#665 1 comment 0 reactions 0 assignees View on GitHub
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

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.