Closed Bug 577572 Opened 14 years ago Closed 14 years ago

arguments and call object not kept coherent after putActivationObjects

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 478174

People

(Reporter: luke, Unassigned)

Details

When we do putActivationObjects and there is both a call and args object, the arguments get copied to two places.  This means that updates to one are not reflected in the other:

function f(x) {
    return { args: arguments, call: function() { return x } };
}

r = f(3);
r.args[0] = 9;
assertEq(r.call(), 9);  // Assertion failed: got 3 expected 9
Pretty sure this is a dup.

/be
Whiteboard: DUPEME
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Super dup!
You need to log in before you can comment on or make changes to this bug.