Closed
Bug 580084
Opened 14 years ago
Closed 14 years ago
JS_InitClass with no methods or properties breaks JSScope::emptyScope invariant
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jorendorff, Assigned: jorendorff)
Details
(Whiteboard: [fixed-in-tracemonkey])
Attachments
(1 file)
2.54 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
js_InitClass says: 3518 if (!proto->scope()->ensureEmptyScope(cx, clasp)) 3519 goto bad; without first ensuring that proto->scope() is mutable. This causes an assertion during GC in debug builds if you manually hack JS_SetGCZeal(cx, 2) into jsapi-tests/tests.h. Easy patch coming.
Assignee | ||
Comment 1•14 years ago
|
||
(Locking here, because we may have called the constructor on this proto, which could have executed code on another context or whatever.)
Assignee: general → jorendorff
Attachment #458470 -
Flags: review?(brendan)
Comment 2•14 years ago
|
||
Comment on attachment 458470 [details] [diff] [review] v1 Hurt me with more conflicts in my mq for bug 558451 -- all good ;-). /be
Attachment #458470 -
Flags: review?(brendan) → review+
Assignee | ||
Comment 3•14 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/7fd49595dc3a
Whiteboard: [fixed-in-tracemonkey]
Comment 4•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/7fd49595dc3a
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•