Permalink
Browse files

fixing two things

  • Loading branch information...
rlidwka committed Jan 4, 2014
1 parent 58be43a commit ef75b9af5a749a6745bc654014f90b8605ab71b1
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/domain.js
  2. +1 −1 test/simple/test-domain.js
View
@@ -56,7 +56,7 @@ var listenerObj = {
if (domain._disposed)
return true;
- if (util.isObject(er) || util.isFunction(er)) {
+ if (!util.isPrimitive(er)) {
er.domain = domain;
er.domainThrown = true;
}
@@ -263,7 +263,7 @@ d.add(fst)
expectCaught++;
-;[42, null, undefined, false, function(){}, 'string'].forEach(function(something) {
+[42, null, undefined, false, function(){}, 'string'].forEach(function(something) {
var d = new domain.Domain();
d.run(function() {
process.nextTick(function() {

0 comments on commit ef75b9a

Please sign in to comment.