diff options
author | Robert Guo <robert.guo@10gen.com> | 2016-10-04 18:05:56 -0400 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2016-10-27 11:33:40 -0400 |
commit | 5b93d767f48469ac7a9212b2013f8349a30e1f70 (patch) | |
tree | bf29a27047e66d9d195f830f06903d5000de7881 /jstests/core/apitest_dbcollection.js | |
parent | 41020aedab4356d99ec012a978c642c37d4fc524 (diff) | |
download | mongo-5b93d767f48469ac7a9212b2013f8349a30e1f70.tar.gz |
SERVER-21089 fix assert.throw/doesNotThrow() argument validation
SERVER-21087 prevent use of "this" in the function passed to assert.throw/doesNotThrow()
Diffstat (limited to 'jstests/core/apitest_dbcollection.js')
-rw-r--r-- | jstests/core/apitest_dbcollection.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/apitest_dbcollection.js b/jstests/core/apitest_dbcollection.js index ac30128b90e..6b90d4de6a9 100644 --- a/jstests/core/apitest_dbcollection.js +++ b/jstests/core/apitest_dbcollection.js @@ -224,7 +224,7 @@ assert.eq(0, db.getCollection("test_db").getIndexes().length, "24"); // Cannot specify both indexDetailsKey and indexDetailsName. var error = assert.throws(function() { t.stats({indexDetails: true, indexDetailsKey: indexKey, indexDetailsName: indexName}); - }, null, 'indexDetailsKey and indexDetailsName cannot be used at the same time'); + }, [], 'indexDetailsKey and indexDetailsName cannot be used at the same time'); assert.eq(Error, error.constructor, 'db.collection.stats() failed when both indexDetailsKey and indexDetailsName ' + |