Skip to content

4.0.9 to 6.9 in Haxe RC2 - Buffer of undefined #121

@hoseyjoe

Description

@hoseyjoe

We have a nodejs application coming out of Haxe code. Somewhere down at line 22000 in our JS Output we have a
require("Buffer").Buffer
We updated hxnodejs to 6.x. Now with our NodeJS server we are getting a "TypeError: Cannot read property 'Buffer' of undefined"

Line 4 of the JS output has
var require = (function(r){ return function require(m) { return r[m]; } })($s.__registry__ || {});
Commenting this out allows the server to run. It probably will error on anything requiring Buffer...but that isnt tested

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