Skip to content

Conversation

@gabrielschulhof
Copy link
Contributor

  • err => {} notation doesn't work on Node 4.
  • Run test that uses Buffer.alloc only if ("alloc" in Buffer).

Fixes: #120

gabrielschulhof pushed a commit to gabrielschulhof/node-addon-api that referenced this pull request Aug 25, 2017
* err => {} notation doesn't work on Node 4.
* Run test that uses Buffer.alloc only if ("alloc" in Buffer).

Fixes: nodejs#120
PR-URL: nodejs#122
* err => {} notation doesn't work on Node 4.
* Use Buffer.alloc polyfill from safe-buffer

Fixes: nodejs#120
PR-URL: nodejs#122
@gabrielschulhof gabrielschulhof changed the title Use old-style functions and skip Buffer.alloc test Use old-style functions and use safe-buffer Aug 25, 2017
Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mhdawson pushed a commit that referenced this pull request Aug 25, 2017
* err => {} notation doesn't work on Node 4.
* Use Buffer.alloc polyfill from safe-buffer

PR-URL: #122
Fixes: #120
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@mhdawson
Copy link
Member

Landed as 790de9f

@mhdawson mhdawson closed this Aug 25, 2017
@gabrielschulhof gabrielschulhof deleted the 120-safe-buffer branch August 25, 2017 17:54
kevindavies8 added a commit to kevindavies8/node-addon-api-Develop that referenced this pull request Aug 24, 2022
* err => {} notation doesn't work on Node 4.
* Use Buffer.alloc polyfill from safe-buffer

PR-URL: nodejs/node-addon-api#122
Fixes: nodejs/node-addon-api#120
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Marlyfleitas added a commit to Marlyfleitas/node-api-addon-Development that referenced this pull request Aug 26, 2022
* err => {} notation doesn't work on Node 4.
* Use Buffer.alloc polyfill from safe-buffer

PR-URL: nodejs/node-addon-api#122
Fixes: nodejs/node-addon-api#120
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
wroy7860 added a commit to wroy7860/addon-api-benchmark-node that referenced this pull request Sep 19, 2022
* err => {} notation doesn't work on Node 4.
* Use Buffer.alloc polyfill from safe-buffer

PR-URL: nodejs/node-addon-api#122
Fixes: nodejs/node-addon-api#120
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
johnfrench3 pushed a commit to johnfrench3/node-addon-api-git that referenced this pull request Aug 11, 2023
* err => {} notation doesn't work on Node 4.
* Use Buffer.alloc polyfill from safe-buffer

PR-URL: nodejs/node-addon-api#122
Fixes: nodejs/node-addon-api#120
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
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.

2 participants