mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 11:01:25 -05:00
use parseInt to make octal numbers to keep JSLint happy
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user