Skip to content

Commit d579237

Browse files
committed
make improvdments of write bson
1 parent b066788 commit d579237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/base/utils/bson.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Module bson
130130

131131
Dim json = as_bson(x, maskReadonly, enumToStr, unixTimestamp, args, env)
132132

133-
Call MIME.application.json.BSON.WriteBuffer(DirectCast(json, JsonObject), stream)
133+
Call MIME.application.json.BSON.SafeWriteBuffer(json, stream)
134134

135135
If file Is Nothing Then
136136
Return DirectCast(stream, MemoryStream).ToArray

0 commit comments

Comments
 (0)