Ryan Dahl
a0159b4b29
Fix global leaks
14 years ago
Oleg Efimov
c0d69a4883
GJSLint part of tests
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
9fd5e3c89c
Update tests to work with module contexts
15 years ago
arlolra
04fac19822
Split tests.
15 years ago
Felix Geisendörfer
b02b54e003
Fix: Module cache did not propagate
This patch makes sure nested modules are available in their parents
cache. The module simplification broke this behavior.
See:
http://groups.google.com/group/nodejs/browse_thread/thread/e875132469547d2
b73f61a137
15 years ago
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()
15 years ago
Ryan Dahl
7abad8b7b3
API: Move node.puts(), node.exec() and others to /utils.js
15 years ago
Ryan Dahl
c8b143bf30
Absolute path names for require() refer to node.libraryPaths
15 years ago
Ryan
723c7d9f7c
Replace onExit() with process.addListener("exit")
- Update documentation.
- Depreciation message for onExit().
16 years ago
Ryan
3fed1a0954
Use v8's test runner
16 years ago
Ryan
f6a7fe2657
Implement onExit() hook for modules.
onExit() is similar to the onLoad() callback. onExit() is called on each
module just before the process exits. This can be used to check state in
unit tests, but not to perform I/O. The process will forcibly exit as soon
as all of the onExit callbacks are made.
16 years ago
Ryan
b6fe4aec50
Module system refactor
There is one major API change in the refactor: filename extensions are now
required when requiring or including modules.
Added extra test to test-module-loading.js.
16 years ago
Ryan
408526a1c1
debugging/improving the module framework
16 years ago