Closed Bug 785989 Opened 12 years ago Closed 12 years ago

Assertion failure: !isForOf || !isForEach, at jsreflect.cpp:2140

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 728079

People

(Reporter: decoder, Unassigned)

Details

(Keywords: assertion, testcase, Whiteboard: [jsbugmon:update,origRev=f077de66e52d,testComment=3][js:t])

The following testcase asserts on mozilla-central revision f077de66e52d (run with -m -n):


version(170);
function test(str, arg, result) {
    var fun = new Function('x', str);
    var got = fun.toSource();
    Reflect.parse(got);
}
test("for (let [a, b] of c) { a.m(b); }");
Whiteboard: [jsbugmon:update,bisect]
Whiteboard: [jsbugmon:update,bisect] → [jsbugmon:update]
JSBugMon: Bisection requested, result:
autoBisect shows this is probably related to the following changeset:

The first bad revision is:
changeset:   99950:e080642175e6
user:        Benjamin Peterson
date:        Fri Jul 20 20:17:38 2012 +0200
summary:     Bug 761723 - Save script sources to implement Function.prototype.toString. r=jorendorff,njn,jimb,jst,Ms2ger
Benjamin, comment 1 seems to point to bug 761723 as the source of this issue, can you take a look? I guess it's low priority though :)
A little simpler:

version(170);
Reflect.parse("for (let [a, b] of c) ;");
Whiteboard: [jsbugmon:update] → [jsbugmon:update,bisect,origRev=f077de66e52d,testComment=3]
Whiteboard: [jsbugmon:update,bisect,origRev=f077de66e52d,testComment=3] → [jsbugmon:update,origRev=f077de66e52d,testComment=3]
JSBugMon: Bisection requested, result:
autoBisect shows this is probably related to the following changeset:

The first bad revision is:
changeset:   99718:3b72e384d1bf
user:        Benjamin Peterson
date:        Wed Jul 18 18:14:15 2012 -0400
summary:     Bug 725702: support for of loops in Reflect.parse r=dherman
Whiteboard: [jsbugmon:update,origRev=f077de66e52d,testComment=3] → [jsbugmon:update,origRev=f077de66e52d,testComment=3][js:t]
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
A testcase for this bug was already added in the original bug (bug 728079).
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.