Details
-
Bug
-
Resolution: Done
-
Trivial - P5
-
None
-
2.6.11, 3.0.7, 3.2.0-rc5
-
None
-
Fully Compatible
-
ALL
-
-
TIG 11 (03/11/16)
Description
attempting to store and find an invalid or native function from the shell gives a SyntaxError.
It looks like the cause is that the shell attempts to eval a function in a document, which would fail if the function is invalid.
2015-12-02T15:04:39.330-0500 E QUERY [thread1] SyntaxError: missing ] after element list :
|
tojsonObject@src/mongo/shell/types.js:701:13
|
tojson@src/mongo/shell/types.js:647:17
|
DBQuery.prototype.shellPrint@src/mongo/shell/query.js:522:65
|
shellPrintHelper@src/mongo/shell/utils.js:462:1
|
@(shell2):1:1
|
Attachments
Issue Links
- related to
-
SERVER-9131 Ensure documents with code elements do not conflict with internal JS functions
-
- Closed
-