Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

assigning Buffer in repl throws error #8588

@meandavejustice

Description

@meandavejustice

in a repl if I do

var Buffer = require('buffer');

I get this error

_stream_writable.js:171
  if (Buffer.isBuffer(chunk))
             ^
TypeError: Object #<Object> has no method 'isBuffer'
    at WriteStream.Writable.write (_stream_writable.js:171:14)
    at WriteStream.Socket.write (net.js:615:40)
    at finish (repl.js:291:27)
    at REPLServer.self.eval (repl.js:122:7)
    at repl.js:249:20
    at REPLServer.self.eval (repl.js:122:7)
    at Interface.<anonymous> (repl.js:239:12)
    at Interface.emit (events.js:95:17)
    at Interface._onLine (readline.js:202:10)
    at Interface._line (readline.js:531:8)

I understand that core modules are included in repl globally, But this behavior seems wrong.

v.0.10.32

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions