@@ -13,7 +13,7 @@ const {
1313 StringPrototypeIncludes,
1414 StringPrototypeLocaleCompare,
1515 StringPrototypeStartsWith,
16- MathMax
16+ MathMax,
1717} = primordials ;
1818const {
1919 copyFileSync,
@@ -170,8 +170,9 @@ class TestCoverage {
170170
171171 if ( isBlockCoverage ) {
172172 ArrayPrototypePush ( branchReports , {
173+ __proto__ : null ,
173174 line : range . lines [ 0 ] . line ,
174- count : range . count
175+ count : range . count ,
175176 } ) ;
176177
177178 if ( range . count !== 0 ||
@@ -187,9 +188,10 @@ class TestCoverage {
187188 const range = ranges [ 0 ] ;
188189
189190 ArrayPrototypePush ( functionReports , {
191+ __proto__ : null ,
190192 name : functions [ j ] . functionName ,
191193 count : MathMax ( ...ArrayPrototypeMap ( ranges , r => r . count ) ) ,
192- line : range . lines [ 0 ] . line
194+ line : range . lines [ 0 ] . line ,
193195 } ) ;
194196
195197 if ( range . count !== 0 || range . ignoredLines === range . lines . length ) {
@@ -209,10 +211,18 @@ class TestCoverage {
209211 if ( line . covered || line . ignore ) {
210212 coveredCnt ++ ;
211213 if ( ! line . ignore ) {
212- ArrayPrototypePush ( lineReports , { line : line . line , count : line . count } )
214+ ArrayPrototypePush ( lineReports , {
215+ __proto__ : null ,
216+ line : line . line ,
217+ count : line . count ,
218+ } )
213219 }
214220 } else {
215- ArrayPrototypePush ( lineReports , { line : line . line , count : 0 } ) ;
221+ ArrayPrototypePush ( lineReports , {
222+ __proto__ : null ,
223+ line : line . line ,
224+ count : 0 ,
225+ } ) ;
216226 }
217227 }
218228
0 commit comments