Closed Bug 765302 Opened 13 years ago Closed 13 years ago

add noScriptRval option to evaluate()

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: jorendorff, Assigned: jorendorff)

Details

(Whiteboard: [js:t])

Attachments

(1 file)

Bug 755808 was awesome, let's do another one of those.
Attached patch v1Splinter Review
Assignee: general → jorendorff
Attachment #633581 - Flags: review?(luke)
Comment on attachment 633581 [details] [diff] [review] v1 Review of attachment 633581 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/shell/js.cpp @@ +832,5 @@ > + if (!JSVAL_IS_VOID(v)) { > + JSBool b; > + if (!JS_ValueToBoolean(cx, v, &b)) > + return false; > + noScriptRval = !!b; We turned off whatever lame MSVC warning used to warn about this so you can leave off the ever-so-attractive !! if you'd like.
Attachment #633581 - Flags: review?(luke) → review+
Whiteboard: [js:t]
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: