0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/test
Brendan Ashworth 1afc0c9e86 fs: fix error on bad listener type
When the listener was truthy but NOT a function, fs.watchFile would
throw an error through the EventEmitter. This caused a problem because
it would only be thrown after the listener was started, which left the
listener on.

There should be no backwards compatability issues because the error was
always thrown, just in a different manner.

Also adds tests for this and other basic functionality.

PR-URL: https://github.com/nodejs/io.js/pull/2093
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-07-10 14:23:18 -07:00
..
addons test: remove smalloc add-on test 2015-06-01 23:17:52 +02:00
cctest deps: check in gtest, add util unit test 2015-04-01 22:35:56 +02:00
debugger debugger: improve ESRCH error message 2015-06-05 05:54:19 +02:00
disabled test: purge stale disabled tests 2015-06-25 11:21:41 -07:00
fixtures util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
gc test: enable linting for tests 2015-05-19 21:21:27 +02:00
internet test: add missing crypto checks 2015-07-08 10:48:47 +10:00
message test: remove stray copyright notices 2015-05-26 17:17:40 +02:00
parallel fs: fix error on bad listener type 2015-07-10 14:23:18 -07:00
pummel lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
sequential util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
testpy test: create temp dir in common.js 2015-06-12 10:27:29 +10:00
timers test: enable linting for tests 2015-05-19 21:21:27 +02:00
.eslintrc tools: enable/add additional eslint rules 2015-06-11 20:27:35 +02:00
common.js test: tmpdir creation failures should fail tests 2015-06-16 17:19:19 -07:00