On Thu, Apr 19, 2012 at 10:46, Bruno Jouhier <[email protected]> wrote:
> Sync calls should only be allowed in startup sequence and in require.
>
> Would it be possible to have a "strict async" switch that make all Sync
> calls throw if called outside of startup or require sequences?
> This would make it easy to spot libraries that are potential perf killers.
npm install nosync
require("nosync")
fs.openSync("filename", "r") // <-- throws
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en