Closed Bug 766064 Opened 9 years ago Closed 9 years ago

Assertion failure: bce->sc->funIsHeavyweight(), at frontend/BytecodeEmitter.cpp:886

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: decoder, Assigned: luke)

Details

(Keywords: assertion, testcase, Whiteboard: [js:t][jsbugmon:update])

Attachments

(1 file)

The following test asserts on mozilla-central revision 19bfe36cace8 (options -m -n -a):


function loop( p = 1, actual = this)  {
  for (var i = 0; 
        (function() { 
        actual += this.assertEq + ' toString, '; 
        }); 
  ++i) { }
}
Oops, the assert is overly conservative: the heavyweight flag can be set later in rare cases, but the only important thing is that it gets set.

On a side note, the way the heavyweight flag gets set (and closed vars get noted) is pretty awkward.
Assignee: general → luke
Status: NEW → ASSIGNED
Attachment #634475 - Flags: review?(jorendorff)
Whiteboard: js-triage-needed [jsbugmon:update] → [js:t][jsbugmon:update]
Attachment #634475 - Flags: review?(jorendorff) → review+
https://hg.mozilla.org/mozilla-central/rev/e6c5677e58de
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
A testcase for this bug was automatically identified at js/src/jit-test/tests/basic/testBug766064.js.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.