Skip to content

better check for global.Buffer #104

Description

@mrx8

clone.js line 106:
} else if (useBuffer && Buffer.isBuffer(parent)) {

can you at least check if Buffer.isBuffer is a function ?
I ended up with a failing clone.js in an Angular project, becaus some other (possibly errorneus package) put an array named "Buffer" in global.

Activity

  1. pvorb commented on Aug 6, 2019

    @pvorb
    Owner

    Hi, can you provide a PR?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions