Skip to content

DeprecationWarning: Using Buffer without new will soon stop working. #1163

Closed
@muxahuk

Description

@muxahuk

node v 7.0.0

Getting warning:

(node:8628) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.

from these line

// lib/connection.js line: 299
var emptyBuffer = Buffer(0);

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