diff options
author | isaacs <i@izs.me> | 2012-12-26 12:31:27 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-12-29 10:37:31 -0800 |
commit | ec8ebaf30090a9265cbad0535e8e0c9a02a49c9f (patch) | |
tree | 61953af9630bfbf700e186cb5447f4e21120dac6 /lib/domain.js | |
parent | 4401bb47bfa4fe72c2755c428577903ece5cfaa0 (diff) | |
download | node-new-ec8ebaf30090a9265cbad0535e8e0c9a02a49c9f.tar.gz |
domain: use camelCase instead of snake_case
While it's true that error objects have a history of getting snake_case
properties attached by the host system, it's a point of confusion to
Node users that comes up a lot. It's still 'experimental', so best to
change this sooner rather than later.
Diffstat (limited to 'lib/domain.js')
-rw-r--r-- | lib/domain.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/domain.js b/lib/domain.js index 32259d7a73..7af08ebd14 100644 --- a/lib/domain.js +++ b/lib/domain.js @@ -140,8 +140,8 @@ Domain.prototype.bind = function(cb, interceptError) { (arguments[0] instanceof Error)) { var er = arguments[0]; util._extend(er, { - domain_bound: cb, - domain_thrown: false, + domainBound: cb, + domainThrown: false, domain: self }); self.emit('error', er); |