Page MenuHomePhabricator

mw.Map should not ignore fallback "undefined"
Closed, ResolvedPublic

Description

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


Version: 1.17.x
Severity: normal

Details

Reference
bz45330

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:20 AM
bzimport set Reference to bz45330.
Krinkle created this task.Feb 24 2013, 2:19 PM

Change-Id: I035e23f700e2120618ed4fbe5ce95c7f9b947e41

(In reply to comment #1)

Change-Id: I035e23f700e2120618ed4fbe5ce95c7f9b947e41

Status Merged