File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1264,7 +1264,7 @@ console.log(buf.lastIndexOf('buffer', 4));
1264
1264
const utf16Buffer = Buffer .from (' \u039a\u0391\u03a3\u03a3\u0395 ' , ' ucs2' );
1265
1265
1266
1266
// Prints: 6
1267
- console .log (utf16Buffer .lastIndexOf (' \u03a3 ' , null , ' ucs2' ));
1267
+ console .log (utf16Buffer .lastIndexOf (' \u03a3 ' , undefined , ' ucs2' ));
1268
1268
1269
1269
// Prints: 4
1270
1270
console .log (utf16Buffer .lastIndexOf (' \u03a3 ' , - 5 , ' ucs2' ));
@@ -1446,7 +1446,7 @@ const buf = Buffer.from([0, 5]);
1446
1446
console .log (buf .readInt16BE ());
1447
1447
1448
1448
// Prints: 1280
1449
- console .log (buf .readInt16LE (1 ));
1449
+ console .log (buf .readInt16LE ());
1450
1450
1451
1451
// Throws an exception: RangeError: Index out of range
1452
1452
console .log (buf .readInt16LE (1 ));
You can’t perform that action at this time.
0 commit comments