From: Jesse Tane Date: Wed, 24 Dec 2014 06:07:45 +0000 (-0500) Subject: crypto-browserify doesn't work in old ie X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=da6c91c2c4edd8660d606de1dff3e29aca3d826a;p=buffer.git crypto-browserify doesn't work in old ie --- diff --git a/bin/download-node-tests.js b/bin/download-node-tests.js index 7723749..7461aee 100755 --- a/bin/download-node-tests.js +++ b/bin/download-node-tests.js @@ -87,7 +87,10 @@ function testfixer(filename) { // https://github.com/iojs/io.js/blob/v0.12/test/parallel/test-buffer.js#L1138 // unfortunately we can't run this as it touches // node streams which do an instanceof check + // and crypto-browserify doesn't work in old + // versions of ie if (filename === 'test-buffer.js') { + line = line.replace(/^(var crypto = require.*)/, '// $1') line = line.replace(/(crypto.createHash.*\))/, '1 /*$1*/') }