Last Comment Bug 697515 - weakmap.set returns itself instead of undefined
: weakmap.set returns itself instead of undefined
Status: RESOLVED FIXED
: addon-compat, dev-doc-complete
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: All All
: -- normal (vote)
: mozilla10
Assigned To: Stephan Herhut [:masterofhats]
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-26 11:43 PDT by Stephan Herhut [:masterofhats]
Modified: 2011-11-20 06:01 PST (History)
7 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
single line fix (586 bytes, text/plain)
2011-10-26 11:43 PDT, Stephan Herhut [:masterofhats]
jorendorff: review+
Details

Description Stephan Herhut [:masterofhats] 2011-10-26 11:43:54 PDT
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.
Comment 1 Jason Orendorff [:jorendorff] 2011-10-26 11:49:20 PDT
Comment on attachment 569749 [details]
single line fix

Yup. Thanks.
Comment 2 Jason Orendorff [:jorendorff] 2011-10-26 12:29:15 PDT
https://hg.mozilla.org/integration/mozilla-inbound/rev/beb93d0d59af
Comment 3 Marco Bonardo [::mak] 2011-10-27 01:44:51 PDT
https://hg.mozilla.org/mozilla-central/rev/beb93d0d59af

Note You need to log in before you can comment on or make changes to this bug.