decodeJavaScript
Decodes this value as JavaScript code.
If this value has type BsonType.JavaScriptWithScope, see decodeJavaScriptScope.
Throws
If the value is not a BsonType.JavaScript or BsonType.JavaScriptWithScope.
Decodes this value as JavaScript code.
If this value has type BsonType.JavaScriptWithScope, see decodeJavaScriptScope.
If the value is not a BsonType.JavaScript or BsonType.JavaScriptWithScope.