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.
Closed
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.