IonMonkey: Assertion failure: js_CheckForStringIndex(id) == id, at js/src/jsatom.h:107

RESOLVED FIXED

Status

()

Core
JavaScript Engine
--
major
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: decoder, Assigned: dvander)

Tracking

(Blocks: 2 bugs, {assertion, testcase})

Other Branch
x86_64
Linux
assertion, testcase
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
The following testcase asserts on ionmonkey revision c34398f961e7 (run with --ion -n), tested on 64 bit:


function TestCase(n, d, e, a) {
  this.name = n;
  this.description = d;
  this.expect = e;
  this.actual = a;
  this.passed = getTestCaseResult(e, a);
  this.reason = '';
}
function getTestCaseResult(expected, actual) {}
var obj = new Function();
for (var i = 0; i < 100; i++) {
        obj['-1'] = new Array();
    assertEq(obj['-1'] == null, false);
    obj = new TestCase();
}
(Assignee)

Comment 1

6 years ago
Created attachment 595547 [details] [diff] [review]
fix

Long-term we should probably use lookupProperty but for now this is fine.
Assignee: general → dvander
Status: NEW → ASSIGNED
Attachment #595547 - Flags: review?
(Assignee)

Updated

6 years ago
Attachment #595547 - Flags: review? → review?(bhackett1024)
Attachment #595547 - Flags: review?(bhackett1024) → review+
(Assignee)

Comment 2

6 years ago
http://hg.mozilla.org/projects/ionmonkey/rev/63d066d8186b
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

5 years ago
A testcase for this bug was automatically identified at js/src/jit-test/tests/ion/bug725003.js.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.