From 1ee96a3f4027063b67782b28bafee07ed770b18d Mon Sep 17 00:00:00 2001 From: Artem Chudinov Date: Wed, 19 Aug 2015 22:15:21 +0500 Subject: [PATCH] md5.js: Remove an unused variable to support enforced strict mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The problem was: arzeth /tmp/test % npm install openpgp openpgp@1.2.0 node_modules/openpgp ├── node-localstorage@0.3.6 ├── es6-promise@1.0.0 └── zlibjs@0.2.0 arzeth /tmp/test % node --version v3.0.0 arzeth /tmp/test % node > var openpgp = require('openpgp'); undefined > arzeth /tmp/test % node --use_strict > var openpgp = require('openpgp'); ReferenceError: txt is not defined at md51 (/tmp/test/node_modules/openpgp/src/crypto/hash/md5.js:135:7) at md5 (/tmp/test/node_modules/openpgp/src/crypto/hash/md5.js:198:14) at Object. (/tmp/test/node_modules/openpgp/src/crypto/hash/md5.js:211:5) at Module._compile (module.js:430:26) at Object.Module._extensions..js (module.js:448:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object. (/tmp/test/node_modules/openpgp/src/crypto/hash/index.js:10:8) --- src/crypto/hash/md5.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/crypto/hash/md5.js b/src/crypto/hash/md5.js index b0261d49..a6cd008e 100644 --- a/src/crypto/hash/md5.js +++ b/src/crypto/hash/md5.js @@ -132,7 +132,6 @@ function ii(a, b, c, d, x, s, t) { } function md51(s) { - txt = ''; var n = s.length, state = [1732584193, -271733879, -1732584194, 271733878], i;