]> zoso.dev Git - buffer.git/commitdiff
fix bug caught by standard v9
authorFeross Aboukhadijeh <feross@feross.org>
Thu, 9 Feb 2017 03:25:20 +0000 (19:25 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Thu, 9 Feb 2017 03:25:20 +0000 (19:25 -0800)
bin/download-node-tests.js

index 97efde02f6fdc8f4622184b45949c613ad90c749..616c9c75044261be48849e3320c2ebf461914b05 100755 (executable)
@@ -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
     }