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

Asynchronous callbacks are not called on REPL #9310

Closed
@sixmen

Description

I just downloaded Node.js 0.12.0, and I found setTimeout's callback does not called on REPL.

$ node 
> setTimeout(function () { console.log('called'); }, 5000), undefined
undefined

But after 5 seconds or more, 'called' is printed if I press any key.

Similarly, fs.readFile does not end if I do not have any action.

$node
> fs.readFile('README.md', function (error, str) { console.log(error, str)})
undefined

Am I doing something wrong? Or is this a bug?

I am on MacOSX 10.10.2, and I installed Node.js via Homebrew.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions