From d0c702a313e2f3cfa6c987e611ba2e64bb3163e3 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Sat, 20 Oct 2012 11:09:56 -0700 Subject: [PATCH] provide EOL constant (#219) --- rhino_modules/os.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 rhino_modules/os.js diff --git a/rhino_modules/os.js b/rhino_modules/os.js new file mode 100644 index 00000000..899853d9 --- /dev/null +++ b/rhino_modules/os.js @@ -0,0 +1,8 @@ +/** + * Partial Rhino implementation of Node.js' `os` module. + * @module os + * @author Jeff Williams + * @see http://nodejs.org/api/os.html + */ + +exports.EOL = java.lang.System.getProperty('line.separator') + '';