@@ -629,7 +629,8 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
629629}
630630
631631{
632- // #1210 Test UTF-8 string includes null character
632+ // https://github.com/nodejs/node-v0.x-archive/pull/1210
633+ // Test UTF-8 string includes null character
633634 let buf = Buffer . from ( '\0' ) ;
634635 assert . strictEqual ( buf . length , 1 ) ;
635636 buf = Buffer . from ( '\0\0' ) ;
@@ -653,7 +654,8 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
653654}
654655
655656{
656- // #243 Test write() with maxLength
657+ // https://github.com/nodejs/node-v0.x-archive/issues/243
658+ // Test write() with maxLength
657659 const buf = Buffer . allocUnsafe ( 4 ) ;
658660 buf . fill ( 0xFF ) ;
659661 assert . strictEqual ( buf . write ( 'abcd' , 1 , 2 , 'utf8' ) , 2 ) ;
@@ -937,11 +939,13 @@ assert.throws(() => Buffer.allocUnsafe(8).writeFloatLE(0.0, -1), RangeError);
937939 assert . strictEqual ( buf . readIntBE ( 0 , 5 ) , - 0x0012000000 ) ;
938940}
939941
940- // Regression test for #5482: should throw but not assert in C++ land.
942+ // Regression test for https://github.com/nodejs/node-v0.x-archive/issues/5482:
943+ // should throw but not assert in C++ land.
941944assert . throws ( ( ) => Buffer . from ( '' , 'buffer' ) , TypeError ) ;
942945
943- // Regression test for #6111. Constructing a buffer from another buffer
944- // should a) work, and b) not corrupt the source buffer.
946+ // Regression test for https://github.com/nodejs/node-v0.x-archive/issues/6111.
947+ // Constructing a buffer from another buffer should a) work, and b) not corrupt
948+ // the source buffer.
945949{
946950 const a = [ ...Array ( 128 ) . keys ( ) ] ; // [0, 1, 2, 3, ... 126, 127]
947951 const b = Buffer . from ( a ) ;
0 commit comments