]> zoso.dev Git - buffer.git/commitdiff
crypto-browserify doesn't work in old ie
authorJesse Tane <jesse.tane@gmail.com>
Wed, 24 Dec 2014 06:07:45 +0000 (01:07 -0500)
committerJesse Tane <jesse.tane@gmail.com>
Wed, 24 Dec 2014 06:07:45 +0000 (01:07 -0500)
bin/download-node-tests.js

index 77237496e78919b231ae1d11bd09ecb376820f7f..7461aeed98f2a1eefe8477d9919195e8befbdf8b 100755 (executable)
@@ -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*/')
     }