Skip to content

Buffer.alloc is unavailable on Node 4 #120

Description

@gabrielschulhof
Starting test suite

Running test 'arraybuffer'
Running test 'asyncworker'
Running test 'buffer'
Test failed: Internal Buffer
/home/nix/node/node-addon-api/test/testUtil.js:17
        throw e;
        ^

TypeError: Buffer.alloc is not a function
    at Array.<anonymous> (/home/nix/node/node-addon-api/test/buffer.js:17:28)
    at runGCTests (/home/nix/node/node-addon-api/test/testUtil.js:14:17)
    at Object.runGCTests (/home/nix/node/node-addon-api/test/testUtil.js:11:7)
    at test (/home/nix/node/node-addon-api/test/buffer.js:10:12)
    at Object.<anonymous> (/home/nix/node/node-addon-api/test/buffer.js:6:1)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

This is npm test on Node 4.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions