Closed Bug 816638 Opened 12 years ago Closed 12 years ago

Add nondeterministicGetWeakMapKeys to the JS shell

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: Waldo, Assigned: jorendorff)

Details

Attachments

(1 file)

This exists on Components.utils, but we should be able to use it in JS tests as well as browser tests. JS_NondeterministicGetWeakMapKeys is the function you'd use to implement the key-getting part of this. The shell function would be implemented in js/src/shell/js.cpp, of course, and would be patterned off any of the other shell functions there.
Can we add it to TestingFunctions.cpp and remove the XPC version?
Attached patch v1Splinter Review
Assignee: general → jorendorff
Attachment #687126 - Flags: review?(kvijayan)
Comment on attachment 687126 [details] [diff] [review] v1 Review of attachment 687126 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me.
Attachment #687126 - Flags: review?(kvijayan) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: