Add BSON code-with-scope spec test
"description": "Bad $code (type is number, not string)",
"string": "{\"a\" : {\"$code\" : 42}}"
},
+ {
+ "description": "Bad $code (type is number, not string) when $scope is also present",
+ "string": "{\"a\" : {\"$code\" : 42, \"$scope\" : {}}}"
+ },
{
"description": "Bad $code (extra field)",
"string": "{\"a\" : {\"$code\" : \"\", \"unrelated\": true}}"
