Skip to content

Commit 431b013

Browse files
authored
Merge pull request #4 from rafal-galka-atendesoftware/pr/final-reserved-word
closure-compiler fix - final is a reserved word
2 parents c295535 + 7c8e70c commit 431b013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ CipherBase.prototype._finalOrDigest = function (outputEnc) {
7474
return outData
7575
}
7676

77-
CipherBase.prototype._toString = function (value, enc, final) {
77+
CipherBase.prototype._toString = function (value, enc, fin) {
7878
if (!this._decoder) {
7979
this._decoder = new StringDecoder(enc)
8080
this._encoding = enc
@@ -83,7 +83,7 @@ CipherBase.prototype._toString = function (value, enc, final) {
8383
throw new Error('can\'t switch encodings')
8484
}
8585
var out = this._decoder.write(value)
86-
if (final) {
86+
if (fin) {
8787
out += this._decoder.end()
8888
}
8989
return out

0 commit comments

Comments
 (0)