TJ Holowaychuk
9481bc1009
Added -e, --eval
14 years ago
Ryan Dahl
dbf0d6bb70
ClearWeak on ObjectWraps. I /think/ this is the correct semantics
14 years ago
isaacs
e9b6b0b327
Report "weird" errors a little better.
There are a few kinds of errors that are very confusing.
1. Errors raised in nextTick
2. Errors emitted on the "error" event
3. RangeErrors that crash the program (or anything without a stack trace)
Long traces will make make these better, of course. In the meantime, this
adds a few handy signposts (in the form of better error reporting and
comments on the otherwise inscrutable code printed to the terminal) that can
help new users find the cause, or at least, ask for help more effectively.
14 years ago
Ryan Dahl
5a4c40beea
Drop reference to timer callback on clearTimeout
Reported here:
http://groups.google.com/group/nodejs-dev/browse_thread/thread/9e063d0938f99879
Would be good to test this somehow...
14 years ago
Ryan Dahl
5cc1428d5f
Remove unused function
14 years ago
Ryan Dahl
1a2c1c8a96
Simplify: per-module cache thing
14 years ago
Ben Noordhuis
55c65cc2d5
Safe constructor for ObjectWrapped classes
New() methods should be invoked as constructors, not regular functions.
Corner cases like Script::New() may cause a SIGSEGV when the GC is run.
More details: http://groups.google.com/group/nodejs/browse_thread/thread/a7e5db68d4cd6356
14 years ago
Ryan Dahl
9911629de0
Fix style in node_crypto.cc
14 years ago
Ryan Dahl
163485c8aa
Rename some SecureStream methods
14 years ago
isaacs
dff1b5ad10
Don't try to run extension loaders unless they're actually functions
14 years ago
Tim-Smart
0f16af7ee4
Remove registerExtension, add .extensions. Tests.
Updated extensions tests
14 years ago
Ryan Dahl
354150f4e1
Tag release versions in 'process.version'
14 years ago
isaacs
bb08f0c219
Remove require.async
This patch removes require.async from nodejs.
1. It complicated the code unnecessarily.
2. Everyone uses sync require anyway.
3. It's got a lot of weird edge cases when mixed with sync require.
4. It is many months behind the commonjs spec anyhow.
14 years ago
Ryan Dahl
27af64ef46
Forgot to include node_main.cc
14 years ago
Ryan Dahl
124fbedc2f
Add node::Start()
first step towards building a libnode.a
14 years ago
Ryan Dahl
4962702e4a
Revert requireNative changes: 4e6b9b0
, d429033
, 6abbfa0
, bcad540
The REPL needs the full require(); add test for that behavior.
14 years ago
Ryan Dahl
776754c33f
Remove process._byteLength
14 years ago
Ryan Dahl
9628e28aec
Remove process.evalcx
14 years ago
Ryan Dahl
01b3418e2e
Move IOWatcher and Timer to process.binding
14 years ago
Ryan Dahl
5a801d63d1
Finally remove process.unloop
14 years ago
Ryan Dahl
f8ce848d9b
Remove process.global
14 years ago
Ryan Dahl
31f8fa222e
Add require('constants')
14 years ago
Ryan Dahl
6eca948ca2
Move constants out of process object
14 years ago
Ryan Dahl
42eb5a6898
Simplify REPL
14 years ago
Paul Querna
5a00d9d50f
Use the Apple recommended way of detecting OSX Versions
to enable KQueue, rather than deciding based on the compiler version.
14 years ago
Paul Querna
c8f9728de7
Move dns.isIP to net.isIP
Add tests and docs.
14 years ago
Herbert Vojčík
4e6b9b0992
No need to do if (internalModuleCache...), it's in requireNative.
14 years ago
Herbert Vojčík
d429033fd7
Module system moved to the bottom, where only is it needed.
(this also splits the file into upper "setup" and lower "startup" sections)
14 years ago
Herbert Vojčík
6abbfa09ff
m.id unneccessary, id is enough.
14 years ago
Herbert Vojčík
bcad5403d6
Natives having their own self-contained minimalistic module system.
The main system is built upon this, and is optional, if only natives
are used in application (eg. node-core).
Natives not loaded into own context if NODE_MODULE_CONTEXTS=1.
This have its inner logic, if natives are seen just as lazy-loaded
parts of the core.
14 years ago
Ryan Dahl
f47ad10db7
Remove a few old deprecation warnings
14 years ago
Ryan Dahl
feea1330cc
Make a list of known globals
And fix missing var!
It would be good to get this script running at the end of every test, so we
know that modules aren't leaking either - but it will require a lot
modification of the tests so that they themselves aren't leaking globals.
14 years ago
Ryan Dahl
efdd73c8e4
Fix style in node_object_wrap.h
15 years ago
Paul Querna
9a701b0a70
Expose fingerproint from getPeerCertificate
Expose the SHA1 digest of the certificate as the fingerprint attribute in
the object returned by getPeerCertificate()
15 years ago
Ryan Dahl
5d42cc3a44
Use SetPointerInInternalField
15 years ago
Ryan Dahl
b8bfbdab48
Rename SlowBuffer in binding
15 years ago
Ryan Dahl
5bc4efe820
Remove blobs, simplify SlowBuffer
Implement SlowBuffer.prototype.slice in js
15 years ago
Ryan Dahl
380d12832c
Remove dead code
15 years ago
Ryan Dahl
efc723787a
Fix big string bug
15 years ago
Ryan Dahl
71d67dbf48
Remove fancy SlowBuffer constructor
15 years ago
Ryan Dahl
6135941eea
Fix ByteLength hangup
15 years ago
Ryan Dahl
5da4faf8c7
fast buffers for crypto
15 years ago
Ryan Dahl
5f935f6c14
Fast buffers for http-parser
15 years ago
Ryan Dahl
ececd92f62
Fix base64 write for buffers
15 years ago
Ryan Dahl
1f947f7b41
remove unnecessary casts
15 years ago
Ryan Dahl
7b772f3f68
More fast buffer work
15 years ago
Ryan Dahl
d5bdda74c1
fast buffer bounds checking in copy()
15 years ago
Ryan Dahl
1cf538a60a
Work to get C++ fast buffers. incomplete
15 years ago
Ryan Dahl
565d862f3c
Fix buffer binding
15 years ago
Tim-Smart
746d487da8
FastBuffer implementation. API needs migration
15 years ago