Closed Bug 900979 Opened 11 years ago Closed 11 years ago

Change JS_DeleteProperty APIs to use a boolean out param rather than a value

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(2 files)

      No description provided.
As suggested in a previous bug, this is pretty pointless as all callers just unpack it into a bool again anyway.
Attached patch bool-out-paramsSplinter Review
Changes inside the JS engine
Attachment #785024 - Flags: review?(jwalden+bmo)
Changes in the rest of the browser
Attachment #785025 - Flags: review?(bzbarsky)
Comment on attachment 785025 [details] [diff] [review]
bool-out-params-browser

> +  return !!(ok && deleted);

Just ok && deleted, please.

r=me if we're sure we want JSBool and not bool here.
Attachment #785025 - Flags: review?(bzbarsky) → review+
We want bool. See Bug 898914.
Comment on attachment 785024 [details] [diff] [review]
bool-out-params

Review of attachment 785024 [details] [diff] [review]:
-----------------------------------------------------------------

Looks fine modulo any bool-ification that should happen.  That should be trivial enough I don't need to see it.
Attachment #785024 - Flags: review?(jwalden+bmo) → review+
(In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #6)

Ok, I'll convert the API to use bool*, but leave the conversion of the internal implementation to bug 898914.
https://hg.mozilla.org/mozilla-central/rev/29385afa711f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: