Skip to content

Commit

Permalink
make JSDoc work on Node.js <5.10.0 (#1393)
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Jul 10, 2017
1 parent b8adbf6 commit a10a779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Expand Up @@ -132,7 +132,7 @@
"callback-return": "off",
"global-require": "off", // TODO: enable
"handle-callback-err": "error",
"no-buffer-constructor": "error",
"no-buffer-constructor": "off", // TODO: enable when we stop supporting Node.js 4.x
"no-mixed-requires": "error",
"no-new-require": "error",
"no-path-concat": "error",
Expand Down
2 changes: 1 addition & 1 deletion lib/jsdoc/fs.js
Expand Up @@ -100,7 +100,7 @@ exports.copyFileSync = function(inFile, outDir, fileName) {
var read;
var write;

var buffer = Buffer.alloc(BUF_LENGTH);
var buffer = new Buffer(BUF_LENGTH);
var bytesRead = 1;
var outFile = path.join( outDir, fileName || path.basename(inFile) );
var pos = 0;
Expand Down

0 comments on commit a10a779

Please sign in to comment.