@@ -636,7 +636,8 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
636636}
637637
638638{
639- // #1210 Test UTF-8 string includes null character
639+ // https://github.com/nodejs/node-v0.x-archive/pull/1210
640+ // Test UTF-8 string includes null character
640641 let buf = Buffer . from ( '\0' ) ;
641642 assert . strictEqual ( buf . length , 1 ) ;
642643 buf = Buffer . from ( '\0\0' ) ;
@@ -660,7 +661,8 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
660661}
661662
662663{
663- // #243 Test write() with maxLength
664+ // https://github.com/nodejs/node-v0.x-archive/issues/243
665+ // Test write() with maxLength
664666 const buf = Buffer . allocUnsafe ( 4 ) ;
665667 buf . fill ( 0xFF ) ;
666668 assert . strictEqual ( buf . write ( 'abcd' , 1 , 2 , 'utf8' ) , 2 ) ;
@@ -886,12 +888,14 @@ assert.throws(() => Buffer.allocUnsafe(8).writeFloatLE(0.0, -1), RangeError);
886888 assert . strictEqual ( buf . readIntBE ( 0 , 5 ) , - 0x0012000000 ) ;
887889}
888890
889- // Regression test for #5482: should throw but not assert in C++ land.
891+ // Regression test for https://github.com/nodejs/node-v0.x-archive/issues/5482:
892+ // should throw but not assert in C++ land.
890893assert . throws ( ( ) => Buffer . from ( '' , 'buffer' ) ,
891894 / ^ T y p e E r r o r : " e n c o d i n g " m u s t b e a v a l i d s t r i n g e n c o d i n g $ / ) ;
892895
893- // Regression test for #6111. Constructing a buffer from another buffer
894- // should a) work, and b) not corrupt the source buffer.
896+ // Regression test for https://github.com/nodejs/node-v0.x-archive/issues/6111.
897+ // Constructing a buffer from another buffer should a) work, and b) not corrupt
898+ // the source buffer.
895899{
896900 const a = [ ...Array ( 128 ) . keys ( ) ] ; // [0, 1, 2, 3, ... 126, 127]
897901 const b = Buffer . from ( a ) ;
0 commit comments