https://bugzilla.wikimedia.org/show_bug.cgi?id=45330

       Web browser: ---
            Bug ID: 45330
           Summary: mw.Map should not ignore fallback "undefined"
           Product: MediaWiki
           Version: 1.17
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JavaScript
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

var a = new mw.Map();

a.get('something');
// null, which is the default fallback for keys that don't exist

a.get('something, 42);
// 42, custom fallback

a.get('something', undefined);
// null, should be undefined

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to