summaryrefslogtreecommitdiff
path: root/jstests/core/js2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/js2.js')
-rw-r--r--jstests/core/js2.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/core/js2.js b/jstests/core/js2.js
index 9dfb5c0b091..abd707fdbbd 100644
--- a/jstests/core/js2.js
+++ b/jstests/core/js2.js
@@ -11,11 +11,11 @@ t.save({z: 1});
t.save({z: 2});
assert.throws(function() {
t.find({
- $where: function() {
- db.jstests_js2_2.save({y: 1});
- return 1;
- }
- }).forEach(printjson);
+ $where: function() {
+ db.jstests_js2_2.save({y: 1});
+ return 1;
+ }
+ }).forEach(printjson);
}, null, "can't save from $where");
assert.eq(0, t2.find().length(), "B");