Skip to content

Commit

Permalink
fixing two things
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Jan 4, 2014
1 parent 58be43a commit ef75b9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/domain.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var listenerObj = {
if (domain._disposed) if (domain._disposed)
return true; return true;


if (util.isObject(er) || util.isFunction(er)) { if (!util.isPrimitive(er)) {
er.domain = domain; er.domain = domain;
er.domainThrown = true; er.domainThrown = true;
} }
Expand Down
2 changes: 1 addition & 1 deletion test/simple/test-domain.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ d.add(fst)
expectCaught++; expectCaught++;




;[42, null, undefined, false, function(){}, 'string'].forEach(function(something) { [42, null, undefined, false, function(){}, 'string'].forEach(function(something) {
var d = new domain.Domain(); var d = new domain.Domain();
d.run(function() { d.run(function() {
process.nextTick(function() { process.nextTick(function() {
Expand Down

0 comments on commit ef75b9a

Please sign in to comment.