weakmap.set returns itself instead of undefined

RESOLVED FIXED in mozilla10

Status

()

Core
JavaScript Engine
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: masterofhats, Assigned: masterofhats)

Tracking

({addon-compat, dev-doc-complete})

Trunk
mozilla10
addon-compat, dev-doc-complete
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 569749 [details]
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.
(Assignee)

Updated

6 years ago
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+

Updated

6 years ago
Assignee: nobody → blackhole
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
https://hg.mozilla.org/integration/mozilla-inbound/rev/beb93d0d59af
https://hg.mozilla.org/mozilla-central/rev/beb93d0d59af
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
Keywords: dev-doc-needed
I've updated the documentation:
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/WeakMap#section_2
and
https://developer.mozilla.org/en/Firefox_10_for_developers#section_3
Keywords: dev-doc-needed → addon-compat, dev-doc-complete
You need to log in before you can comment on or make changes to this bug.