thatcher / env-js

A pure-JavaScript browser environment.
http://www.envjs.com/
464 stars 75 forks source link

Preliminary support for node v0.5.x and above #44

Open eatstoomuchjam opened 12 years ago

eatstoomuchjam commented 12 years ago

Node v0.5.x and above removed support for the require_paths statement and prefer that it be done using the NODE_PATH environment variable. In addition, the "sys" namespace has been deprecated in favor of the "util" namespace. My changes should be backward-compatible to 0.4.x. I haven't done any regression testing to confirm that other things work correctly with these patches in place, but at the very least node.js 0.5.x and 0.6.x will run without errors or warnings.