Closed Bug 1246927 Opened 8 years ago Closed 8 years ago

Fix OOM handling in usages of GlobalObject::maybeGetIntrinsicValue

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: till, Assigned: till)

Details

Attachments

(1 file)

GlobalObject::maybeGetIntrinsicValue currently conflates OOM errors and benign "value not found on intrinsics holder" results in invalid ways. Patch coming up
Comment on attachment 8717416 [details] [diff] [review]
Fix OOM handling in usages of GlobalObject::maybeGetIntrinsicValue

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

Nice :D

::: js/src/vm/GlobalObject.h
@@ +600,5 @@
>      }
>  
>      static bool
>      maybeGetIntrinsicValue(JSContext* cx, Handle<GlobalObject*> global, Handle<PropertyName*> name,
> +                           MutableHandleValue vp, bool* found)

s/found/exists/ maybe?
Attachment #8717416 - Flags: review?(arai.unmht) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/902f29ef36e6e1aaf8a86952f66265617eca56f7
Bug 1246927 - Fix OOM handling in usages of GlobalObject::maybeGetIntrinsicValue. r=arai
https://hg.mozilla.org/mozilla-central/rev/902f29ef36e6
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: