summaryrefslogtreecommitdiff
path: root/test/simple/test-exception-handler.js
diff options
context:
space:
mode:
authorOleg Efimov <efimovov@gmail.com>2010-12-05 22:15:30 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-12-05 15:41:58 -0800
commit0665f0271e71270dc23ec5231b245adfe709a49f (patch)
tree5679d97d06ac451bf33d60c17bbdcb57967907da /test/simple/test-exception-handler.js
parent47c40bf18d393654b4f1d64ad386486c3f248942 (diff)
downloadnode-new-0665f0271e71270dc23ec5231b245adfe709a49f.tar.gz
GJSLint all simple tests exclude http-*, url, path
Diffstat (limited to 'test/simple/test-exception-handler.js')
-rw-r--r--test/simple/test-exception-handler.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/simple/test-exception-handler.js b/test/simple/test-exception-handler.js
index 880514c665..6c4923e8e5 100644
--- a/test/simple/test-exception-handler.js
+++ b/test/simple/test-exception-handler.js
@@ -4,14 +4,14 @@ var assert = require('assert');
var MESSAGE = 'catch me if you can';
var caughtException = false;
-process.addListener('uncaughtException', function (e) {
- console.log("uncaught exception! 1");
+process.addListener('uncaughtException', function(e) {
+ console.log('uncaught exception! 1');
assert.equal(MESSAGE, e.message);
caughtException = true;
});
-process.addListener('uncaughtException', function (e) {
- console.log("uncaught exception! 2");
+process.addListener('uncaughtException', function(e) {
+ console.log('uncaught exception! 2');
assert.equal(MESSAGE, e.message);
caughtException = true;
});
@@ -20,7 +20,7 @@ setTimeout(function() {
throw new Error(MESSAGE);
}, 10);
-process.addListener("exit", function () {
- console.log("exit");
+process.addListener('exit', function() {
+ console.log('exit');
assert.equal(true, caughtException);
});