Closed Bug 729813 Opened 12 years ago Closed 12 years ago

IonMonkey: Assertion failure: index < natoms, at ../../jsscript.h:731

Categories

(Core :: JavaScript Engine, defect)

Other Branch
x86_64
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 732860

People

(Reporter: decoder, Assigned: nbp)

References

Details

(Keywords: assertion, testcase)

The following testcase asserts on ionmonkey revision 5a04fd69aa09 (run with --ion -n -m --ion-eager), tested on 64 bit:


function trySetProperty(o, p, v, strict) {
  function strictSetProperty() {
    "use strict";
    o[p] = v;
  }
  try  {
      strictSetProperty();
  }  catch (e)  {
    return "throw";
  }
}
var slowArray = [1, 2, 3];
var objs = [{}, { 1: 2 }, { a: 3 }, [], [1], [, 1], slowArray, function a(){}, /a/];
for (var i = 0, sz = objs.length; i < sz; i++) {
  var o = objs[i];
  var o2 = Object.preventExtensions(o);
  assertEq(trySetProperty(o, "baz", (4), true), "throw", "object " + i);
}
The bug here is that this calls js_GetTopStackFrame() instead of using scriptedCaller or StackIter, but neither really work properly with Ion yet. bug 730111 is the first step to fixing that.
Depends on: 730111
Assignee: general → nicolas.b.pierron
Gary told me that when we fix a bug you file 2, but apparently you are cheating! :)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
A testcase for this bug was already added in the original bug (bug 732860).
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.