]> zoso.dev Git - buffer.git/commitdiff
fix node tests not running
authorFeross Aboukhadijeh <feross@feross.org>
Sat, 6 Aug 2016 22:23:32 +0000 (15:23 -0700)
committerFeross Aboukhadijeh <feross@feross.org>
Sat, 6 Aug 2016 22:23:32 +0000 (15:23 -0700)
bin/download-node-tests.js

index 3209d1733feca0d97c389be702ed8f240ddb5f52..6b327a440a42e026b5249d812738f40f2e1bfb9d 100755 (executable)
@@ -66,7 +66,7 @@ function testfixer (filename) {
     if (firstline) {
       // require buffer explicitly
       var preamble = 'var Buffer = require(\'../../\').Buffer;\n' +
-        'if (Buffer.TYPED_ARRAY_SUPPORT) return;'
+        'if (!Buffer.TYPED_ARRAY_SUPPORT) return;'
       if (/use strict/.test(line)) line += '\n' + preamble
       else line + preamble + '\n' + line
       firstline = false