|
Trying to use tab completion to see the available member functions an ObjectId no longer works.
3.2.0 and 3.2.1-rc0 (broken):
$ /m/3.2.1-rc0/bin/mongo --norc
|
MongoDB shell version: 3.2.1-rc0
|
connecting to: test
|
> foo = ObjectId()
|
ObjectId("56821a6f4a438b568c340b3b")
|
> foo.<Tab>exception during autocomplete: "Cannot call \"getter\" on prototype of \"ObjectId\""
|
<Tab>exception during autocomplete: "Cannot call \"getter\" on prototype of \"ObjectId\""
|
<Enter> foo.
|
...<Enter>
|
...<Enter>
|
> shellAutocomplete("foo."); printjson(__autocomplete__)
|
exception during autocomplete: "Cannot call \"getter\" on prototype of \"ObjectId\""
|
[ ]
|
>
|
3.0.8 (expected behaviour):
$ /m/3.0.8/bin/mongo --norc
|
MongoDB shell version: 3.0.8
|
connecting to: test
|
> foo = ObjectId()
|
ObjectId("56821a1322aec7582e7b4f0b")
|
> foo.<Tab><Tab>
|
foo.constructor foo.getTimestamp( foo.isObjectId foo.str foo.toString( foo.valueOf(
|
foo.equals( foo.hasOwnProperty( foo.propertyIsEnumerable( foo.toLocaleString( foo.tojson(
|
> foo.<Enter>
|
... <Enter>
|
... <Enter>
|
> shellAutocomplete("foo."); printjson(__autocomplete__)
|
[
|
"foo.constructor",
|
"foo.equals(",
|
"foo.getTimestamp(",
|
"foo.hasOwnProperty(",
|
"foo.isObjectId",
|
"foo.propertyIsEnumerable(",
|
"foo.str",
|
"foo.toLocaleString(",
|
"foo.toString(",
|
"foo.tojson(",
|
"foo.valueOf("
|
]
|
>
|
|