mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
fix error message when the 'encoding' parameter to fs.writeFileSync is omitted
This commit is contained in:
parent
bcd0865c38
commit
a1799b6bbe
@ -162,7 +162,7 @@ exports.copyFileSync = function(inFile, outDir, fileName) {
|
||||
};
|
||||
|
||||
exports.writeFileSync = function(filename, data, encoding) {
|
||||
encoding = checkEncoding(encoding);
|
||||
encoding = checkEncoding(encoding, 'fs.writeFileSync');
|
||||
|
||||
var out = new Packages.java.io.PrintWriter(
|
||||
new Packages.java.io.OutputStreamWriter(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user