@@ -951,7 +951,7 @@ class Doc extends PDFObject {
951951 cName = parts [ 0 ] ;
952952 }
953953
954- for ( const [ name , field ] of this . _fields . entries ( ) ) {
954+ for ( const [ name , field ] of this . _fields ) {
955955 if ( name . endsWith ( cName ) ) {
956956 if ( ! isNaN ( childIndex ) ) {
957957 const children = this . _getChildren ( name ) ;
@@ -985,7 +985,7 @@ class Doc extends PDFObject {
985985 const len = fieldName . length ;
986986 const children = [ ] ;
987987 const pattern = / ^ \. [ ^ . ] + $ / ;
988- for ( const [ name , field ] of this . _fields . entries ( ) ) {
988+ for ( const [ name , field ] of this . _fields ) {
989989 if ( name . startsWith ( fieldName ) ) {
990990 const finalPart = name . slice ( len ) ;
991991 if ( pattern . test ( finalPart ) ) {
@@ -1000,7 +1000,7 @@ class Doc extends PDFObject {
10001000 // Get all the descendants which have a value.
10011001 const children = [ ] ;
10021002 const len = fieldName . length ;
1003- for ( const [ name , field ] of this . _fields . entries ( ) ) {
1003+ for ( const [ name , field ] of this . _fields ) {
10041004 if ( name . startsWith ( fieldName ) ) {
10051005 const finalPart = name . slice ( len ) ;
10061006 if (
0 commit comments