diff options
author | Oleg Efimov <efimovov@gmail.com> | 2010-12-05 22:15:30 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-12-05 15:41:58 -0800 |
commit | 0665f0271e71270dc23ec5231b245adfe709a49f (patch) | |
tree | 5679d97d06ac451bf33d60c17bbdcb57967907da /test/simple/test-exception-handler.js | |
parent | 47c40bf18d393654b4f1d64ad386486c3f248942 (diff) | |
download | node-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.js | 12 |
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); }); |