HoriSun / closure-compiler

Automatically exported from code.google.com/p/closure-compiler
0 stars 0 forks source link

Compiler crash on an unsigned shift #1175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile the following code:
var a= function() {
  return;
  var x_100 = true;
  return;
  throw(x_100 = x_100) >>> 1;
};

What is the expected output? 
Compiled code

What do you see instead?
Crash:
Unexpected variable x_100
  Node(NAME x_100): Input_0:5:14
throw(x_100 = x_100) >>> 1;
  Parent(URSH): Input_0:5:5
throw(x_100 = x_100) >>> 1;

Original issue reported on code.google.com by zp...@google.com on 12 Dec 2013 at 11:14

GoogleCodeExporter commented 9 years ago
Smaller repro

function f() {
  var x;
  return;
  throw x = x;
}

Thanks for the report.

Original comment by dim...@google.com on 12 Dec 2013 at 11:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is fixed by patch in issue 1177

Original comment by tnti...@gmail.com on 14 Feb 2014 at 9:32

GoogleCodeExporter commented 9 years ago
Issue tracking has been migrated to github. Please make any further comments on 
this issue through https://github.com/google/closure-compiler/issues

Original comment by blic...@google.com on 1 May 2014 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by blic...@google.com on 1 May 2014 at 6:34