Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use Buffer.alloc, Buffer.from. #1895

Merged
merged 2 commits into from Dec 29, 2017
Merged

Conversation

aladdin-add
Copy link
Contributor

@aladdin-add aladdin-add commented Dec 28, 2017

Since new Buffer() was deprecated since Node.js v6. (https://nodejs.org/dist/latest-v8.x/docs/api/buffer.html#buffer_class_buffer)

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@codecov-io
Copy link

codecov-io commented Dec 28, 2017

Codecov Report

Merging #1895 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1895   +/-   ##
=======================================
  Coverage   99.59%   99.59%           
=======================================
  Files          29       29           
  Lines         738      738           
=======================================
  Hits          735      735           
  Misses          3        3

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73bc636...1c30af7. Read the comment docs.

@popomore
Copy link
Member

为啥不把 new 去掉

@popomore
Copy link
Member

分支 rebase 下,commit message 是 docs

Since new Buffer() was deprecated since Node.js v6.
@aladdin-add
Copy link
Contributor Author

确认一下:commit message 改成 docs: ***? 但是这个PR没有修改文档啊

@popomore
Copy link
Member

哦,看错了,那改成 test:

@popomore popomore merged commit c136470 into eggjs:master Dec 29, 2017
@aladdin-add aladdin-add deleted the chore/buffer branch December 29, 2017 09:49
popomore pushed a commit that referenced this pull request Dec 29, 2017
test: use Buffer.alloc, Buffer.from. (#1895)

Since new Buffer() was deprecated since Node.js v6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants