diff options
author | Aaron <aaron@10gen.com> | 2011-06-02 16:53:44 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2011-06-02 16:53:44 -0400 |
commit | f528a0e49dd39285c1c8db18ec7510e3c539fb20 (patch) | |
tree | 71ca1f447c621b954a397c689e66d746153f42d3 /jstests | |
parent | 6daddc776c4c9d61421f9012fe91a5ec4a7e0888 (diff) | |
download | mongo-f528a0e49dd39285c1c8db18ec7510e3c539fb20.tar.gz |
SERVER-2905 adjust test to potentially work in v8 mode
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sorta.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/sorta.js b/jstests/sorta.js index 96f4824f588..f5942d4bddd 100644 --- a/jstests/sorta.js +++ b/jstests/sorta.js @@ -3,7 +3,8 @@ t = db.jstests_sorta; t.drop(); -t.save( {_id:0,a:MinKey} ); +// Enable _allow_dot to try and bypass v8 field name checking. +t.insert( {_id:0,a:MinKey}, true ); t.save( {_id:1,a:null} ); t.save( {_id:2,a:[]} ); t.save( {_id:7,a:[2]} ); @@ -11,7 +12,7 @@ t.save( {_id:3} ); t.save( {_id:4,a:null} ); t.save( {_id:5,a:[]} ); t.save( {_id:6,a:1} ); -t.save( {_id:8,a:MaxKey} ); +t.insert( {_id:8,a:MaxKey}, true ); function sorted( arr ) { for( i = 1; i < arr.length; ++i ) { |