Skip to content

Invalid Binding on Node.Buffer.toString  #2796

@alukito

Description

@alukito

The binding on node_buffer.ml is

external toString : t -> string = ""
[@@bs.send] [@@bs.scope "Buffer"]

The [@@bs.scope "Buffer"] is causing the js output to have undefined value. For example,

Node.Buffer.toString(something);
// js output, Buffer is undefined
something.Buffer.toString(); 

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