File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -375,11 +375,11 @@ describe('binaryDecoderTest', () => {
375
375
376
376
const decoder = jspb . BinaryDecoder . alloc ( encoder . end ( ) ) ;
377
377
378
- expect ( decoder . readString ( ascii . length , true ) ) . toEqual ( ascii ) ;
379
- expect ( utf8_two_bytes ) . toEqual ( decoder . readString ( 2 , true ) ) ;
378
+ expect ( decoder . readString ( ascii . length , /* enforceUtf8= */ true ) ) . toEqual ( ascii ) ;
379
+ expect ( utf8_two_bytes ) . toEqual ( decoder . readString ( 2 , /* enforceUtf8= */ true ) ) ;
380
380
expect ( utf8_three_bytes )
381
- . toEqual ( decoder . readString ( 3 , true ) ) ;
382
- expect ( utf8_four_bytes ) . toEqual ( decoder . readString ( 4 , true ) ) ;
381
+ . toEqual ( decoder . readString ( 3 , /* enforceUtf8= */ true ) ) ;
382
+ expect ( utf8_four_bytes ) . toEqual ( decoder . readString ( 4 , /* enforceUtf8= */ true ) ) ;
383
383
} ) ;
384
384
385
385
/**
You can’t perform that action at this time.
0 commit comments