jashkenas / coffeescript

Unfancy JavaScript
https://coffeescript.org/
MIT License
16.45k stars 1.98k forks source link

process.mixin will be deprecated in future node.js #260

Closed TBD closed 14 years ago

TBD commented 14 years ago

from node.js 0.1.32 we have anoter deprecation warning "process.mixin will be removed from node-core future releases"

should we replace it with a shallow copy as described in http://groups.google.com/group/nodejs/msg/b68914a3ac024e0c ?

tim-smart commented 14 years ago

http://github.com/jashkenas/coffee-script/commit/02f4cb75dd69ad5bce45b24d44bc2926d833d694 :D

TBD commented 14 years ago

oopsie.

now I have problems with (after updatind both node and coffee-script)

Error: Cannot find module './../lib/helpers' at loadModule (node.js:572:15) at require (node.js:698:12) at Object. (/usr/local/bin/coffee:3:1) at Module._compile (node.js:719:23) at node.js:750:20 at fs:51:23 at node.js:811:9

tim-smart commented 14 years ago

Yeah, that needs a separate issue. bin/coffee will need patching to point to the right lib directory.

jashkenas commented 14 years ago

That was my bad -- I broke the relative requires in bin/coffee and bin/cake. They're fixed now.

As for process.mixin, we're using the new helpers.extend to get the shallow copy into global scope (which is in itself debatable).