mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
use parseInt to make octal numbers to keep JSLint happy
This commit is contained in:
parent
3dc456572b
commit
126f6c2d88
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@
|
|||
filename = path.basename(source, path.extname(source)) + '.js';
|
||||
dir = this.options.output || path.dirname(source);
|
||||
js_path = path.join(dir, filename);
|
||||
return posix.open(js_path, process.O_CREAT | process.O_WRONLY | process.O_TRUNC, 0755).addCallback(function(fd) {
|
||||
return posix.open(js_path, process.O_CREAT | process.O_WRONLY | process.O_TRUNC, parseInt('0755', 8)).addCallback(function(fd) {
|
||||
return posix.write(fd, js);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue