Colton Baker
87286cc737
Fixed a lot of jslint errors.
Fixes #1831
13 years ago
Maciej Małecki
8c8d518723
assert: Make `assert` module an `assert.ok` function
Code can be written:
var assert = require('assert');
assert(true);
instead of:
var assert = require('assert');
assert.ok(true);
13 years ago
Ryan Dahl
0696e78d64
Improve assert error messages
1. actual and expected should be displayed in the same order they were given
2. long values should be truncated.
14 years ago
koichik
5f97c9a005
Improvements AssertionError message
Fixes #217 .
14 years ago
Ryan Dahl
5a05992155
Lint
14 years ago
Oleg Slobodskoi
23cf938e4f
fix assert.throws
14 years ago
Ryan Dahl
db78043d52
lint
14 years ago
Oleg Slobodskoi
02083412eb
assert.throws can now accept as RegExp
makes validation of errors more flexible
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
Joshaven Potter
3d4e4d8909
syntax fixes to pass jslint
14 years ago
Ryan Dahl
1be722a271
Special deepEquals for buffer
15 years ago
Mikeal Rogers
fe3d8f2411
Add assert.ifError
15 years ago
isaacs
57fbb627ca
trailing whitespace fixes
15 years ago
Ryan Dahl
4ccdc501d4
Include lib/ directory in node executable. Compile on demand.
Instead of installing the files in /usr/lib/node/libraries and loading them
from the file system, the files are built-in to the node executable.
However, they are only compiled on demand.
The reasoning is:
1. Allow for more complex internal javascript. In particular,
process.stdout and process.stdin can be js implemented streams.
2. Ease system installs. Loading from disk each time is unnecessary
overhead. Note that there is no "system" path for modules anymore. Only
$HOME/.node_libraries.
15 years ago
Ryan Dahl
b021a845f7
Move process.inherits to sys
15 years ago
Ryan Dahl
c420c89dbd
Make assert.AssertionError instance of Error
15 years ago
Ryan Dahl
0accebe583
Stack trace for asserts shouldn't include assert module
15 years ago
Ryan Dahl
dd35637603
Fix assert.js code style
15 years ago
Karl Guertin
4f679fd8d0
Dependency free assert module with unit tests
15 years ago
Felix Geisendörfer
530328f12b
CommonJS testing for node.js
Refactored test suite to use the assert module for testing rather than
mjsunit.
15 years ago