-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.2.2
-
Component/s: None
The Javascript class decodes the scope document on access, which means that decoding errors are only thrown when the scope is accessed (e.g. var_dump(), Javascript::getScope()) instead of when the Javascript object is initialized from BSON.
This has implications for the "bad scope doc (field has bad string length)" test in the BSON corpus spec test suite.