File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,13 +7,9 @@ const SlowBuffer = require('buffer').SlowBuffer;
77// Regression test for https://github.com/nodejs/node/issues/649.
88const len = 1422561062959 ;
99const lenLimitMsg = / ^ R a n g e E r r o r : I n v a l i d t y p e d a r r a y l e n g t h $ / ;
10- assert . throws ( ( ) => Buffer ( len ) . toString ( 'utf8' ) ,
11- lenLimitMsg ) ;
12- assert . throws ( ( ) => SlowBuffer ( len ) . toString ( 'utf8' ) ,
13- lenLimitMsg ) ;
14- assert . throws ( ( ) => Buffer . alloc ( len ) . toString ( 'utf8' ) ,
15- lenLimitMsg ) ;
16- assert . throws ( ( ) => Buffer . allocUnsafe ( len ) . toString ( 'utf8' ) ,
17- lenLimitMsg ) ;
10+ assert . throws ( ( ) => Buffer ( len ) . toString ( 'utf8' ) , lenLimitMsg ) ;
11+ assert . throws ( ( ) => SlowBuffer ( len ) . toString ( 'utf8' ) , lenLimitMsg ) ;
12+ assert . throws ( ( ) => Buffer . alloc ( len ) . toString ( 'utf8' ) , lenLimitMsg ) ;
13+ assert . throws ( ( ) => Buffer . allocUnsafe ( len ) . toString ( 'utf8' ) , lenLimitMsg ) ;
1814assert . throws ( ( ) => Buffer . allocUnsafeSlow ( len ) . toString ( 'utf8' ) ,
1915 lenLimitMsg ) ;
You can’t perform that action at this time.
0 commit comments