From: Feross Aboukhadijeh Date: Thu, 9 Feb 2017 03:25:20 +0000 (-0800) Subject: fix bug caught by standard v9 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=4f1e50b6d220577794e290e8a3421584c90802bc;p=buffer.git fix bug caught by standard v9 --- diff --git a/bin/download-node-tests.js b/bin/download-node-tests.js index 97efde0..616c9c7 100755 --- a/bin/download-node-tests.js +++ b/bin/download-node-tests.js @@ -67,7 +67,7 @@ function testfixer (filename) { // require buffer explicitly var preamble = 'var Buffer = require(\'../../\').Buffer;\n' if (/use strict/.test(line)) line += '\n' + preamble - else line + preamble + '\n' + line + else line += preamble + '\n' + line firstline = false }