google / google/closure-compiler

Regression; loss of some names in --debug output

Open
#3,772 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

Since upgrading between the most recent releases (```closure-compiler-v20210106.jar``` to ```closure-compiler-v20210202.jar```) I notice a regression and a loss of useful information in the naming out of some ```--debug``` output.

Here's an example diff:

```
- $pause_rtt$jscomp$2$$ = this.$Tracer$_interval$;
+ $pause_rtt$jscomp$2$$ = this.$JSC$1730__interval$;

-$JSCompiler_prototypeAlias$$.$Plug_prototype$_toggle$ = function() {
+$JSCompiler_prototypeAlias$$.$JSC$1939__toggle$ = function() {

- }.bind($JSCompiler_StaticMethods_Door_prototype$open$self$$, $cap$jscomp$2$$), 500);
+ }.bind($JSCompiler_StaticMethods_JSC$1694_open$self$$, $cap$jscomp$2$$), 500);
```

I spent a few minutes trying to make a minimal test case, but time got the better of me as it was hard to stop the optimiser intervening to remove the code(!) Are these examples enough?

The compile flags are:

```
java -jar closure-compiler-v20210202.jar -O ADVANCED --formatting PRETTY_PRINT --debug
```

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.