From 3cbeb3219b383839d545d2c6501e5f08e474e67a Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 6 Aug 2016 15:23:32 -0700 Subject: [PATCH] fix node tests not running --- bin/download-node-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/download-node-tests.js b/bin/download-node-tests.js index 3209d17..6b327a4 100755 --- a/bin/download-node-tests.js +++ b/bin/download-node-tests.js @@ -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 -- 2.34.1