Skip to content

test: replace anonymous closure functions with arrow functions

Rodrigo Muino Tomonari requested to merge github/fork/sagirk/js-arrow-41 into master

In test/parallel/test-fs-truncate-fd.js, callbacks use anonymous closure functions. It is safe to replace them with arrow functions since these callbacks don't alter their context (this). This results in shorter functions.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading