Skip to content

5.0.4 has broken change #154

@legokichi

Description

@legokichi
// fileA.js
const Buffer = require("buffer/").Buffer;
module.exports.A = new Buffer(10);
// fileB.js
const Buffer = require("buffer/").Buffer;
module.exports.B = new Buffer(10);
// fileC.js
const {A} = require("./fileA");
const {B} = require("./fileB");
console.log(Buffer.concat([A, B]));

in 5.0.3

$ browserify fileC.js > fileD.js | node
<Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>

in 5.0.4

$ browserify fileC.js > fileD.js | node
[stdin]:472
      throw new TypeError('"list" argument must be an Array of Buffers')
      ^

TypeError: "list" argument must be an Array of Buffers
    at Function.concat ([stdin]:472:13)
    at Object.<anonymous> ([stdin]:1917:20)
    at Object.6../fileA ([stdin]:1919:4)
    at s ([stdin]:1:254)
    at e ([stdin]:1:425)
    at [stdin]:1:443
    at ContextifyScript.Script.runInThisContext (vm.js:25:33)
    at Object.exports.runInThisContext (vm.js:77:17)
    at Object.<anonymous> ([stdin]-wrapper:6:22)
    at Module._compile (module.js:556:32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions