Skip to content

buffer: runtime-deprecate Buffer(num) by default

This is a "light" version of #15346 that only prints the warning by default when [new ]Buffer(num) is used, as suggested by @BridgeAR in https://github.com/nodejs/node/pull/15346#issuecomment-331557738.

Most reasons for runtime deprecation by default as listed in #15346 still apply here.

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
Affected core subsystem(s)

buffer

Merge request reports

Loading