11 Commits

Author SHA1 Message Date
Jeff Williams
cc238c1701 more fs module stubs 2013-12-24 14:50:53 -08:00
Jeff Williams
900f9f1216 add function names; cleanup 2013-12-24 12:49:30 -08:00
Jeff Williams
f55feb1a0e 'use strict'ify 2013-11-11 23:49:54 -08:00
Jeff Williams
e0df71b1ae fix various path-related issues on Windows
- add env.pwd global, and use it instead of process.env.PWD, which is
undefined in Node.js on Windows
- normalize paths where necessary
2013-11-10 16:57:48 -08:00
Jeff Williams
8ba5919b77 resolve path before creating directory (#516) 2013-11-06 23:16:21 -08:00
Jeff Williams
751bea1b0a fixes for Node.js compatibility (see details)
- new Rhino .jar to help find module paths
(https://github.com/hegemonic/rhino/commit/31b70105)
- make __dirname and process.cwd() provide the current module path; use
only env.dirname for JSDoc's home dir; fix callers
- get rid of jsdoc/util/include (and update test framework accordingly)
- avoid running Rhino/Node.js tests on the wrong runtime
- remove support for global 'publish' function, which relied upon
jsdoc/util/include
- update jsdoc/util/dumper for consistency with Node.js'
JSON.stringify()
- fix jsdoc/util/runtime to detect Node.js correctly
- add Node.js versions of jsdoc/fs and jsdoc/path
- other minor cleanup
2013-10-25 23:30:56 -07:00
Jeff Williams
9745685dde make the fs.statSync shim throw an error (consistent with Node.js) 2013-10-23 09:32:20 -07:00
Jeff Williams
780637450c add async versions of Node.js fs/path methods
the methods are really asynchronous; the file I/O is not.
2013-05-03 08:42:41 -07:00
Jeff Williams
a1799b6bbe fix error message when the 'encoding' parameter to fs.writeFileSync is omitted 2013-01-24 20:30:21 -08:00
Jeff Williams
d73570defc make fs module consistent with Node.js (#211) 2012-12-26 19:03:05 -08:00
Jeff Williams
4e0e4c2b97 move Node.js shims to rhino/ 2012-12-23 10:38:25 -08:00