Closed Bug 475908 Opened 16 years ago Closed 12 years ago

pcdelta offset can differ across decompilation with serial comma

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
trivial

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> f = function() { a, (a, a); }  
function () {
    a, a, a;
}

js> dis(f)
flags: LAMBDA INTERPRETED
main:
00000:  name "a"
00003:  pop
00004:  name "a"
00007:  pop
00008:  name "a"
00011:  pop
00012:  stop

Source notes:
  0:     3 [   3] pcdelta  offset 8 <-- this is the line that changes
  2:     7 [   4] pcdelta  offset 4

js> dis(eval(uneval(f)))
flags: LAMBDA INTERPRETED
main:
00000:  name "a"
00003:  pop
00004:  name "a"
00007:  pop
00008:  name "a"
00011:  pop
00012:  stop

Source notes:
  0:     3 [   3] pcdelta  offset 4
  2:     7 [   4] pcdelta  offset 4
Fixed by saving the source.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.