no longer explode if native module didn't build correctly

This commit is contained in:
brian 2011-03-15 23:00:58 -05:00
parent f815c990c3
commit c72dea82d9

View File

@ -8,6 +8,9 @@ module.exports = {
Connection: require(__dirname + '/connection'),
connect: pool.connect,
end: pool.end,
defaults: defaults,
native: require(__dirname + '/native')
defaults: defaults
}
module.exports.__defineGetter__("native", function() {
return require('native');
})