Closed Bug 519692 Opened 15 years ago Closed 15 years ago

Failed to decompile expressions like "new Date()"

Categories

(Rhino Graveyard :: Core, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mguillemot, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14
Build Identifier: 

Compile following to a script
  var x = new Date().getTime()

then decompile it and you will get
  var x = new Date.getTime()

what is wrong!

Reproducible: Always
Submitted, thanks!

Checking in src/org/mozilla/javascript/IRFactory.java;
/cvsroot/mozilla/js/rhino/src/org/mozilla/javascript/IRFactory.java,v  <--  IRFactory.java
new revision: 1.128; previous revision: 1.127
done
Checking in testsrc/opt-1.tests;
/cvsroot/mozilla/js/rhino/testsrc/opt-1.tests,v  <--  opt-1.tests
new revision: 1.7; previous revision: 1.6
done
Checking in testsrc/opt0.tests;
/cvsroot/mozilla/js/rhino/testsrc/opt0.tests,v  <--  opt0.tests
new revision: 1.7; previous revision: 1.6
done
Checking in testsrc/opt9.tests;
/cvsroot/mozilla/js/rhino/testsrc/opt9.tests,v  <--  opt9.tests
new revision: 1.7; previous revision: 1.6
done
RCS file: /cvsroot/mozilla/js/rhino/testsrc/org/mozilla/javascript/tests/DecompileTest.java,v
done
Checking in testsrc/org/mozilla/javascript/tests/DecompileTest.java;
/cvsroot/mozilla/js/rhino/testsrc/org/mozilla/javascript/tests/DecompileTest.java,v  <--  DecompileTest.java
initial revision: 1.1
done
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: