Files
mongo/jstests/core/error5.js
Robert Guo 5b93d767f4 SERVER-21089 fix assert.throw/doesNotThrow() argument validation
SERVER-21087 prevent use of "this" in the function passed to assert.throw/doesNotThrow()
2016-10-27 11:33:40 -04:00

11 lines
156 B
JavaScript

t = db.error5;
t.drop();
assert.throws(function() {
t.save(4);
printjson(t.findOne());
}, [], "A");
t.save({a: 1});
assert.eq(1, t.count(), "B");