use parseInt to make octal numbers to keep JSLint happy

This commit is contained in:
Jeremy Ashkenas
2010-02-13 01:04:53 -05:00
parent 3dc456572b
commit 126f6c2d88
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ exports.write_js: (source, js) ->
filename: path.basename(source, path.extname(source)) + '.js'
dir: @options.output or path.dirname(source)
js_path: path.join dir, filename
posix.open(js_path, process.O_CREAT | process.O_WRONLY | process.O_TRUNC, 0755).addCallback (fd) ->
posix.open(js_path, process.O_CREAT | process.O_WRONLY | process.O_TRUNC, parseInt('0755', 8)).addCallback (fd) ->
posix.write(fd, js)
# Pipe compiled JS through JSLint (requires a working 'jsl' command).