[Pkg-javascript-commits] [node-cipher-base] 12/18: closure-compiler fix - final is a reserved word
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Apr 20 19:25:25 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-cipher-base.
commit 7c8e70c14c54c8b176afd221972df5491bf45605
Author: Rafal Galka <rafal.galka at atendesoftware.pl>
Date: Tue Sep 13 11:01:02 2016 +0200
closure-compiler fix - final is a reserved word
---
index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 34fcae2..1a661d6 100644
--- a/index.js
+++ b/index.js
@@ -74,7 +74,7 @@ CipherBase.prototype._finalOrDigest = function (outputEnc) {
return outData
}
-CipherBase.prototype._toString = function (value, enc, final) {
+CipherBase.prototype._toString = function (value, enc, fin) {
if (!this._decoder) {
this._decoder = new StringDecoder(enc)
this._encoding = enc
@@ -83,7 +83,7 @@ CipherBase.prototype._toString = function (value, enc, final) {
throw new Error('can\'t switch encodings')
}
var out = this._decoder.write(value)
- if (final) {
+ if (fin) {
out += this._decoder.end()
}
return out
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cipher-base.git
More information about the Pkg-javascript-commits
mailing list