summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2016-10-11 20:55:50 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2016-10-11 20:55:50 -0400
commit350c0382b170c8cc97caddd586110fbd509543f1 (patch)
tree6b4b98bfb5dc5b8075a4bd9382648af96a59c301 /jstests/aggregation/bugs
parent1126f5411b19c87b3447ada413f11bfb0b466908 (diff)
downloadmongo-350c0382b170c8cc97caddd586110fbd509543f1.tar.gz
Revert "SERVER-26503 fix incorrect uses of assert.throws()"
This reverts commit 1126f5411b19c87b3447ada413f11bfb0b466908.
Diffstat (limited to 'jstests/aggregation/bugs')
-rw-r--r--jstests/aggregation/bugs/server6556.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/aggregation/bugs/server6556.js b/jstests/aggregation/bugs/server6556.js
index a6d1a0c4837..261dc5a35b5 100644
--- a/jstests/aggregation/bugs/server6556.js
+++ b/jstests/aggregation/bugs/server6556.js
@@ -20,6 +20,4 @@ assert.eq(c.aggregate({$project: {_id: 0, matches: {$eq: ["as", "$foo"]}}}).toAr
assert.eq(c.aggregate({$project: {_id: 0, matches: {$eq: ["as\0de", "$foo"]}}}).toArray(),
[{matches: false}]);
// should assert on fieldpaths with a null
-assert.throws(function() {
- c.aggregate({$project: {_id: 0, matches: {$eq: ["as\0df", "$f\0oo"]}}});
-});
+assert.throws(c.aggregate, {$project: {_id: 0, matches: {$eq: ["as\0df", "$f\0oo"]}}});