The last line crashes the shell.
MongoDB shell version: 1.5.6
connecting to: test
> Object.bsonsize(db.test1.findOne())
37
> Object.bsonsize("test")
Sat Jul 24 11:00:41 Error: bsonsize requires one valid object (shell):0
> Object.bsonsize({})
0
> Object.bsonsize(
)