@@ -636,7 +636,8 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
636
636
}
637
637
638
638
{
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
640
641
let buf = Buffer . from ( '\0' ) ;
641
642
assert . strictEqual ( buf . length , 1 ) ;
642
643
buf = Buffer . from ( '\0\0' ) ;
@@ -660,7 +661,8 @@ assert.strictEqual('<Buffer 81 a3 66 6f 6f a3 62 61 72>', x.inspect());
660
661
}
661
662
662
663
{
663
- // #243 Test write() with maxLength
664
+ // https://github.com/nodejs/node-v0.x-archive/issues/243
665
+ // Test write() with maxLength
664
666
const buf = Buffer . allocUnsafe ( 4 ) ;
665
667
buf . fill ( 0xFF ) ;
666
668
assert . strictEqual ( buf . write ( 'abcd' , 1 , 2 , 'utf8' ) , 2 ) ;
@@ -886,7 +888,8 @@ assert.throws(() => Buffer.allocUnsafe(8).writeFloatLE(0.0, -1), RangeError);
886
888
assert . strictEqual ( buf . readIntBE ( 0 , 5 ) , - 0x0012000000 ) ;
887
889
}
888
890
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.
890
893
common . expectsError (
891
894
( ) => Buffer . from ( '' , 'buffer' ) ,
892
895
{
@@ -896,8 +899,9 @@ common.expectsError(
896
899
}
897
900
) ;
898
901
899
- // Regression test for #6111. Constructing a buffer from another buffer
900
- // should a) work, and b) not corrupt the source buffer.
902
+ // Regression test for https://github.com/nodejs/node-v0.x-archive/issues/6111.
903
+ // Constructing a buffer from another buffer should a) work, and b) not corrupt
904
+ // the source buffer.
901
905
{
902
906
const a = [ ...Array ( 128 ) . keys ( ) ] ; // [0, 1, 2, 3, ... 126, 127]
903
907
const b = Buffer . from ( a ) ;
0 commit comments