Open luisggpina opened 4 years ago
Shorter input that shows what's going on more clearly:
function outer(){
inner("a","b");
function inner(inner$jscomp$1, inner){ }
}
Why is this a problem for you?
We found this crashing input using a fuzzing tool that generates inputs automatically which may result in a crash. In this case, our tool found such an input: A piece of JavaScript that results in the compiler crashing with a RuntimeException
, prompting the compiler to encourage a bug report.
Our tool only generates valid JavaScript (as per the JavaScript grammar), so this is a bug as the compiler should reject the input instead of crashing.
Input for
SIMPLE_OPTIMIZATIONS
:Error output:
Affects: v20200405
Reproduce by passing a file with the input to this class:
Compiler options (default options):