[Pkg-javascript-commits] [node-sha.js] 160/237: safely check for IntArray32 existance

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:03:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-sha.js.

commit e2376fd5824fa89ad571e0ea666367511d3a02b5
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Thu Sep 18 12:36:35 2014 +0300

    safely check for IntArray32 existance
---
 sha1.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sha1.js b/sha1.js
index 54e2046..af87d38 100644
--- a/sha1.js
+++ b/sha1.js
@@ -8,7 +8,6 @@
  */
 
 var inherits = require('util').inherits
-var global = require('global')
 
 module.exports = function (Buffer, Hash) {
 
@@ -18,7 +17,7 @@ module.exports = function (Buffer, Hash) {
   var D = 12|0
   var E = 16|0
 
-  var W = new (global.Int32Array || Array)(80)
+  var W = new (typeof Int32Array === 'undefined' ? Array : Int32Array)(80)
 
   var POOL = []
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git



More information about the Pkg-javascript-commits mailing list