Skip to content

util: avoid leaking `arguments` in `_deprecate()`.

Refs: https://github.com/nodejs/node/issues/10323

I didn't bother to benchmark it, but this probably deopts this function in all calls to a deprecated class / constructor.

CI: https://ci.nodejs.org/job/node-test-pull-request/5685/

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

util

Merge request reports

Loading