Ryan Dahl
05ae932a0e
Implement fs.readdirSync()
2010-02-21 23:06:08 -08:00
Ryan Dahl
4c8889bba2
Revert "Add fs.readdirSync()"
...
Doesn't work on Linux.
This reverts commit 05d6da6c4a .
2010-02-21 21:53:35 -08:00
Micheil Smith
05d6da6c4a
Add fs.readdirSync()
2010-02-21 16:32:20 -08:00
Ryan Dahl
ef55324f1a
Do not use Promise in 'fs' module
2010-02-19 16:02:30 -08:00
Ryan Dahl
b82ef28d9d
Rename 'posix' module to 'fs'
2010-02-12 01:04:14 -08:00
Ryan Dahl
a695065305
Add failing test for stdout flush on exit
2010-02-07 18:05:58 -08:00
Mikeal Rogers
c05b5d8b59
Adding test for bug in stdio.
...
http://groups.google.com/group/nodejs/browse_thread/thread/10fda8eaf7276642/e5d5147f2b666abd
2010-02-05 10:58:00 -08:00
isaacs
4dcdfaf929
Fix require("../blah") issues
...
Added some more tests, and refactored the uri and path modules to use the
same normalization logic, so that nothing is relying on flaky regexps.
http://groups.google.com/group/nodejs/browse_thread/thread/34779f8c10098c5e
http://groups.google.com/group/nodejs/browse_thread/thread/1aa0146b92582679#msg_9822c03998cb4064
2009-12-22 17:22:12 +01:00
Ryan Dahl
0981e7f663
Fix test-readdir.js
...
Was broken because I added "throws_error.js" to the fixtures directory.
Problem appeared in bfa36136da .
2009-12-19 00:45:01 +01:00
Felix Geisendörfer
530328f12b
CommonJS testing for node.js
...
Refactored test suite to use the assert module for testing rather than
mjsunit.
2009-12-05 01:05:16 +01:00
Rhys Jones
b6dda61249
Initial TLS support
2009-11-22 04:03:53 +01:00
Ryan Dahl
7a2e784ad7
Module refactor - almost CommonJS compatible now
...
API change summary:
* require("/sys.js") becomes require("sys")
* require("circle.js") becomes require("./circle")
* process.path.join() becomes require("path").join()
2009-10-31 19:10:30 +01:00
Ryan Dahl
ad0a4cefb8
Namespace EVERYTHING under process; introduce GLOBAL
...
http://groups.google.com/group/nodejs/browse_thread/thread/1034fd2ad2cd93e8
2009-10-29 23:36:41 +01:00
Ryan Dahl
3d8b14e6f7
node.fs.* moved into "/posix.js"
...
use require("/posix.js") to access them.
2009-10-28 22:45:46 +01:00
Felix Geisendörfer
abbc624f52
Multipart test now uses a fixture instead of CURL
2009-10-07 02:03:24 +02:00
Ryan Dahl
8185e1fd25
Remove include() add node.mixin()
...
include() should not be used by libraries because it will pollute the global
namespace. To discourage this behavior and bring Node more in-line with
the current CommonJS module system, include() is removed.
Small scripts like unit tests often times do want to pollute the global
namespace for ease. To avoid the boiler plate code of
var x = require("/x.js");
var foo = x.foo;
var bar = x.bar;
The function node.mixin() is stolen from jQuery's jQuery.extend. So that it
can be written:
node.mixin(require("/x.js"));
Reference:
http://docs.jquery.com/Utilities/jQuery.extend
http://groups.google.com/group/nodejs/browse_thread/thread/f9ac83e5c11e7e87
2009-10-05 15:46:31 +02:00
Ryan Dahl
4b8f503fac
Move mjsunit.js to system module directory.
2009-09-20 18:19:33 +02:00
Ryan
b6eed30379
Sort files in readdir test.
2009-09-03 21:59:31 +02:00
Ryan
9b3e2ae192
Add node.fs.readdir()
2009-09-03 21:32:27 +02:00