-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.4.3
-
Component/s: Shell
-
None
-
Environment:amazon ami linux (~ CentOS 6), and also os x 10.8.3
-
Fully Compatible
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
there is a bson "Code" type allowing us to save functions in a collection.
From the shell, if a native function [like String.prototype.trim used below] is saved to the database, it will throw an Unexpected identifier when retrieved.
I have not been able to identify the exact source of the error. In the nodejs driver -- and i assume other drivers -- it works fine in the sense that it will not throw an error. Obviously the property still has invalid data.