Closed Bug 697515 Opened 13 years ago Closed 13 years ago

weakmap.set returns itself instead of undefined

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10

People

(Reporter: masterofhats, Assigned: masterofhats)

Details

(Keywords: addon-compat, dev-doc-complete)

Attachments

(1 file)

Attached file single line fix
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; MS-RTC LM 8)

Steps to reproduce:

in the js shell, run

new WeakMap().set({}, {})


Actual results:

yields: 

function set() {[native code]}


Expected results:

should yield undefined.
Component: General → JavaScript Engine
OS: Windows 7 → All
Hardware: x86 → All
Comment on attachment 569749 [details]
single line fix

Yup. Thanks.
Attachment #569749 - Flags: review+
Assignee: nobody → blackhole
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
https://hg.mozilla.org/mozilla-central/rev/beb93d0d59af
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: