Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.4.3
-
None
-
amazon ami linux (~ CentOS 6), and also os x 10.8.3
-
Fully Compatible
-
ALL
-
Description
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.