Closed Bug 700195 Opened 13 years ago Closed 13 years ago

"Assertion failure: !cx->isExceptionPending()" with isPrivilegeEnabled throwing

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: jruderman, Assigned: sfink)

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Assertion failure: !cx->isExceptionPending(), at js/src/jscntxtinlines.h:300

(Should throw an exception along the lines of "not enough arguments".)
Attached file stack trace
Assignee: general → sphink
Status: NEW → ASSIGNED
Attachment #575353 - Flags: review?(bobbyholley+bmo)
Comment on attachment 575353 [details] [diff] [review]
return false on error

I'm not a peer in this code, but this seems like a reasonable change. r=bholley.

NB: This entire API is going away soon.
Attachment #575353 - Flags: review?(bobbyholley+bmo) → review+
(In reply to Bobby Holley (:bholley) from comment #3)
> I'm not a peer in this code, but this seems like a reasonable change.
> r=bholley.

Whoops, sorry. I didn't really pay attention to where this fix ended up.

> NB: This entire API is going away soon.

For that reason, and because it's such a simple fix, and because I'm a bad person, I think I'll land it anyway.
https://hg.mozilla.org/mozilla-central/rev/d048ad9ebe24
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: