We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 121b68a commit 827bbe7Copy full SHA for 827bbe7
1 file changed
test/parallel/test-buffer-arraybuffer.js
@@ -15,9 +15,9 @@ const buf = new Buffer(ab);
15
assert.ok(buf instanceof Buffer);
16
// For backwards compatibility of old .parent property test that if buf is not
17
// a slice then .parent should be undefined.
18
-assert.equal(buf.parent, undefined);
19
-assert.equal(buf.buffer, ab);
20
-assert.equal(buf.length, ab.byteLength);
+assert.strictEqual(buf.parent, undefined);
+assert.strictEqual(buf.buffer, ab);
+assert.strictEqual(buf.length, ab.byteLength);
21
22
23
buf.fill(0xC);
@@ -46,7 +46,7 @@ assert.throws(function() {
46
}, TypeError);
47
48
// write{Double,Float}{LE,BE} with noAssert should not crash, cf. #3766
49
-var b = new Buffer(1);
+const b = Buffer.allocUnsafe(1);
50
b.writeFloatLE(11.11, 0, true);
51
b.writeFloatBE(11.11, 0, true);
52
b.writeDoubleLE(11.11, 0, true);
0 commit comments