We don't use the global Buffer throughout the lib/ to avoid circular dependency issues in core, and we have a custom lint rule to prevent doing so by accident. But before https://github.com/nodejs/node/pull/5371 this rule used to be applied to the whole project instead of just lib/. Now that the rule only applies to the relevant part of the codebase, all the instances of
const Buffer = require('buffer').Buffer;
and
const { Buffer } = require('buffer');
can be safely removed from the files in the test/ directory.
I did this grep yesterday, so here's a list...
[x] test-sendfd.js (#13860)
[x] test-dgram-broadcast-multi-process.js (#13860)
[x] test-buffer-alloc.js (#13855)
[x] test-vm-cached-data.js (#13844)
[x] test-https-no-reader.js (#13860)
Going to use to onboard people today, cheers!
Going to work on:
test-buffer-alloc.js
test-buffer-arraybuffer.js
test-buffer-badhex.js
test-buffer-bytelength.js
Cheers
I'm trying to fix:
test-fs-mkdtemp.js
test-fs-read-zero-length.js
test-fs-read.js
test-fs-whatwg-url.js
test-fs-write-string-coerce.js
test-fs-write.js
:)
I'll start on the three stand-alone scripts
test\disabled\test-sendfd.js
test\internet\test-dgram-broadcast-multi-process.js
test\pummel\test-https-no-reader.js
UPDATE: almost there, sorry for the delay!
I'll work for
I'll work for
I'll take :
test-buffer-nopendingdep-map.js
test-buffer-pending-deprecation.js
test-buffer-sharedarraybuffer.js
test-buffer-slow.js
test-buffer-tojson.js
test-buffer-zero-fill.js
Looks like all the tests have been taken and made into pull requests. So removing the good-first-contribution tag.
All pull requests have landed on master, thank you all and hope to see new contributions from you :)
Most helpful comment
All pull requests have landed on master, thank you all and hope to see new contributions from you :)