mongo/jstests/core/server25192.js

13 lines
208 B
JavaScript

(function() {
"use strict";
var x = {};
assert.doesNotThrow(function() {
Object.extend(x, {a: null}, true);
}, [], "Extending an object with a null field does not throw");
assert.eq(x.a, null);
}());