File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,8 @@ class Logger {
286286 }
287287
288288 let result = '' ;
289- for ( const key in bindings ) {
289+ const keys = ObjectKeys ( bindings ) ;
290+ for ( const key of keys ) {
290291 const serialized = this . #serializeValue( bindings [ key ] , key ) ;
291292 result += `,"${ key } ":${ JSONStringify ( serialized ) } ` ;
292293 }
@@ -449,7 +450,8 @@ class Logger {
449450
450451 const serialized = { __proto__ : null } ;
451452
452- for ( const key in obj ) {
453+ const keys = ObjectKeys ( obj ) ;
454+ for ( const key of keys ) {
453455 serialized [ key ] = this . #serializeValue( obj [ key ] , key ) ;
454456 }
455457
@@ -500,7 +502,8 @@ class Logger {
500502 // Apply serializers to additional fields
501503 if ( fields ) {
502504 const serializedFields = this . #applySerializers( fields ) ;
503- for ( const key in serializedFields ) {
505+ const keys = ObjectKeys ( serializedFields ) ;
506+ for ( const key of keys ) {
504507 logFields [ key ] = serializedFields [ key ] ;
505508 }
506509 }
You can’t perform that action at this time.
0 commit comments