summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-12-26 12:31:27 -0800
committerisaacs <i@izs.me>2012-12-29 10:37:31 -0800
commitec8ebaf30090a9265cbad0535e8e0c9a02a49c9f (patch)
tree61953af9630bfbf700e186cb5447f4e21120dac6 /lib
parent4401bb47bfa4fe72c2755c428577903ece5cfaa0 (diff)
downloadnode-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')
-rw-r--r--lib/domain.js4
-rw-r--r--lib/events.js4
2 files changed, 4 insertions, 4 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);
diff --git a/lib/events.js b/lib/events.js
index eb0aa16e43..223015ec60 100644
--- a/lib/events.js
+++ b/lib/events.js
@@ -58,9 +58,9 @@ EventEmitter.prototype.emit = function(type) {
{
if (this.domain) {
var er = arguments[1];
- er.domain_emitter = this;
+ er.domainEmitter = this;
er.domain = this.domain;
- er.domain_thrown = false;
+ er.domainThrown = false;
this.domain.emit('error', er);
return false;
}