Closed Bug 451732 Opened 16 years ago Closed 16 years ago

JS_EvaluateUCScriptForPrincipals doesn't report pending exceptions if compile fails

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

References

Details

Attachments

(1 file)

Attached patch Patch, v1 (deleted) — Splinter Review
JS_EvaluateUCScriptForPrincipals doesn't report pending exceptions if compile fails, it's missing a LAST_FRAME_CHECKS. Patch attached, thanks mrbkap for helping me find this!
Attachment #335071 - Flags: review?(mrbkap)
Comment on attachment 335071 [details] [diff] [review] Patch, v1 Thanks!
Attachment #335071 - Flags: review?(mrbkap) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Flags: in-testsuite?
Flags: in-litmus-
bent: help with a test?
So I think you just need to verify that calling JS_EvaluateUCScriptForPrincipals on a script with a compile error, not an execution error, throws properly... Something like a syntax error in a for expression or something. FWIW I have tests for this in worker thread mochitests.
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: