From da6c91c2c4edd8660d606de1dff3e29aca3d826a Mon Sep 17 00:00:00 2001 From: Jesse Tane Date: Wed, 24 Dec 2014 01:07:45 -0500 Subject: [PATCH] crypto-browserify doesn't work in old ie --- bin/download-node-tests.js | 3 +++ 1 file changed, 3 insertions(+) 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*/') } -- 2.34.1