Ryan Dahl
54e844cf08
add require.cache
2010-10-07 09:58:08 -07:00
Joshaven Potter
3d4e4d8909
syntax fixes to pass jslint
2010-10-06 20:40:57 -07:00
TJ Holowaychuk
9481bc1009
Added -e, --eval
2010-10-06 19:09:22 -07:00
Ryan Dahl
dbf0d6bb70
ClearWeak on ObjectWraps. I /think/ this is the correct semantics
2010-10-04 12:52:46 -07:00
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.
2010-10-02 06:44:28 -07:00
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...
2010-10-01 11:16:51 -07:00
Ryan Dahl
5cc1428d5f
Remove unused function
2010-09-30 12:20:33 -07:00
Ryan Dahl
1a2c1c8a96
Simplify: per-module cache thing
2010-09-30 12:18:58 -07:00
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
2010-09-29 16:02:45 -07:00
Ryan Dahl
9911629de0
Fix style in node_crypto.cc
2010-09-28 19:17:09 -07:00
Ryan Dahl
163485c8aa
Rename some SecureStream methods
2010-09-28 11:38:27 -07:00
isaacs
dff1b5ad10
Don't try to run extension loaders unless they're actually functions
2010-09-22 10:13:25 -07:00
Tim-Smart
0f16af7ee4
Remove registerExtension, add .extensions. Tests.
...
Updated extensions tests
2010-09-20 09:56:43 -07:00
Ryan Dahl
354150f4e1
Tag release versions in 'process.version'
2010-09-19 17:22:18 -07:00
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.
2010-09-19 16:52:39 -07:00
Ryan Dahl
27af64ef46
Forgot to include node_main.cc
2010-09-19 14:25:13 -07:00
Ryan Dahl
124fbedc2f
Add node::Start()
...
first step towards building a libnode.a
2010-09-19 13:13:59 -07:00
Ryan Dahl
4962702e4a
Revert requireNative changes: 4e6b9b0, d429033, 6abbfa0, bcad540
...
The REPL needs the full require(); add test for that behavior.
2010-09-19 11:22:15 -07:00
Ryan Dahl
776754c33f
Remove process._byteLength
2010-09-17 01:06:44 -07:00
Ryan Dahl
9628e28aec
Remove process.evalcx
2010-09-17 00:23:27 -07:00
Ryan Dahl
01b3418e2e
Move IOWatcher and Timer to process.binding
2010-09-17 00:15:54 -07:00
Ryan Dahl
5a801d63d1
Finally remove process.unloop
2010-09-17 00:03:17 -07:00
Ryan Dahl
f8ce848d9b
Remove process.global
2010-09-17 00:01:27 -07:00
Ryan Dahl
31f8fa222e
Add require('constants')
2010-09-16 23:22:58 -07:00
Ryan Dahl
6eca948ca2
Move constants out of process object
2010-09-16 23:16:07 -07:00
Ryan Dahl
42eb5a6898
Simplify REPL
2010-09-16 20:50:56 -07:00
Paul Querna
5a00d9d50f
Use the Apple recommended way of detecting OSX Versions
...
to enable KQueue, rather than deciding based on the compiler version.
2010-09-16 17:32:30 -07:00
Paul Querna
c8f9728de7
Move dns.isIP to net.isIP
...
Add tests and docs.
2010-09-16 17:27:10 -07:00
Herbert Vojčík
4e6b9b0992
No need to do if (internalModuleCache...), it's in requireNative.
2010-09-16 13:46:27 -07:00
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)
2010-09-16 13:45:43 -07:00
Herbert Vojčík
6abbfa09ff
m.id unneccessary, id is enough.
2010-09-16 13:44:16 -07:00
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.
2010-09-15 17:30:34 -07:00
Ryan Dahl
f47ad10db7
Remove a few old deprecation warnings
2010-09-15 16:18:54 -07:00
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.
2010-09-14 23:03:29 -07:00
Ryan Dahl
efdd73c8e4
Fix style in node_object_wrap.h
2010-09-13 11:40:04 -07:00
Paul Querna
9a701b0a70
Expose fingerproint from getPeerCertificate
...
Expose the SHA1 digest of the certificate as the fingerprint attribute in
the object returned by getPeerCertificate()
2010-09-09 23:35:17 -07:00
Ryan Dahl
5d42cc3a44
Use SetPointerInInternalField
2010-09-09 15:47:37 -07:00
Ryan Dahl
b8bfbdab48
Rename SlowBuffer in binding
2010-09-09 11:03:51 -07:00
Ryan Dahl
5bc4efe820
Remove blobs, simplify SlowBuffer
...
Implement SlowBuffer.prototype.slice in js
2010-09-09 11:03:51 -07:00
Ryan Dahl
380d12832c
Remove dead code
2010-09-09 11:03:50 -07:00
Ryan Dahl
efc723787a
Fix big string bug
2010-09-09 11:03:50 -07:00
Ryan Dahl
71d67dbf48
Remove fancy SlowBuffer constructor
2010-09-09 11:03:50 -07:00
Ryan Dahl
6135941eea
Fix ByteLength hangup
2010-09-09 11:03:50 -07:00
Ryan Dahl
5da4faf8c7
fast buffers for crypto
2010-09-09 11:03:49 -07:00
Ryan Dahl
5f935f6c14
Fast buffers for http-parser
2010-09-09 11:03:49 -07:00
Ryan Dahl
ececd92f62
Fix base64 write for buffers
2010-09-09 11:03:49 -07:00
Ryan Dahl
1f947f7b41
remove unnecessary casts
2010-09-09 11:03:49 -07:00
Ryan Dahl
7b772f3f68
More fast buffer work
2010-09-09 11:03:48 -07:00
Ryan Dahl
d5bdda74c1
fast buffer bounds checking in copy()
2010-09-09 11:03:48 -07:00
Ryan Dahl
1cf538a60a
Work to get C++ fast buffers. incomplete
2010-09-09 11:03:48 -07:00