1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Re-throw callback errors on nextTick

Otherwise an error thrown in a callback would be throw on the parser's stack.
This commit is contained in:
Matt Ranney
2010-12-13 12:46:54 -08:00
parent cfe0df1c3f
commit 202df58b93
2 changed files with 26 additions and 3 deletions

View File

@@ -1,5 +1,10 @@
/*global Buffer require exports console setTimeout */
// TODO - incorporate these V8 pro tips:
// pre-allocate Arrays if length is known in advance
// do not use delete
// use numbers for parser state
var events = require("events"),
util = require("../util").util;