Closed Bug 548276 Opened 15 years ago Closed 15 years ago

"Assertion failure: HAS_FUNCTION_CLASS(funobj), at ../jsdbgapi.cpp"

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: gkw, Assigned: jorendorff)

References

Details

(Keywords: assertion, regression, testcase, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file, 1 obsolete file)

__defineSetter__("x", function() {}); (function() { this.watch("x", function() {}) })(); __defineSetter__("x", /a/) asserts js debug shell on TM tip without -j at Assertion failure: HAS_FUNCTION_CLASS(funobj), at ../jsdbgapi.cpp:776 To reproduce this, pass the testcase as a CLI argument. (e.g. ./js -j testcase.js) autoBisect shows this is probably related to bug 547314: The first bad revision is: changeset: 38505:65eeef03da7c user: Andreas Gal date: Mon Feb 22 16:30:22 2010 -0800 summary: Introduce ObjectOps for typeOf and make trace a mandatory ObjectOp (547314, r=brendan).
Assignee: general → jorendorff
I looked into this yesterday and forgot to update the bug. We allow callable objects as setters/getters, so the code should just return false if !HAS_FUNCTION_CLASS() instead of asserting.
Attached patch patch (obsolete) — Splinter Review
Attached patch v1Splinter Review
Yay for assertions.
Attachment #428943 - Flags: review?(jwalden+bmo)
Attachment #428943 - Flags: review?(jwalden+bmo) → review+
Comment on attachment 428940 [details] [diff] [review] patch jorendorff's patch is the same as this - with a test. Marking obsolete to clear up future "discover patches with no review flags set" endeavours.
Attachment #428940 - Attachment is obsolete: true
Thanks Gary.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
A testcase for this bug was automatically identified at js/src/tests/js1_8_5/regress/regress-548276.js.
Flags: in-testsuite+
Testcases have been landed by virtue of being marked in-testsuite+ -> VERIFIED as well.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: