Closed Bug 743409 Opened 9 years ago Closed 9 years ago

ALIASEDVAR Patch: Assertion failure: data.s.payload.why == why, at jsapi.h:470

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: decoder, Assigned: luke)

References

Details

(Keywords: assertion, testcase)

The following test asserts on mozilla-central revision d0430a04d92a with patch from bug 740259 (options -m -n -a):


function foo(n) {
  foo.apply = function(a, b) { return b[0]; }
  return n;
}
function bar( value ) { return foo.apply(null, arguments); }
for (var i = 0x1 ; i < 20; i++)
  assertEq(bar(i), i);
Thanks!

The JSScript::applySpeculationFailed needs to inject 'unknown' into the pushed set of JSOP_ARGUMENTS, not the 'arguments' local's slot.  Fix and test-case rolled into bug 740259.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 740259
Resolution: DUPLICATE → FIXED
You need to log in before you can comment on or make changes to this bug.