Commit 7c8e70c1 authored by Rafal Galka's avatar Rafal Galka

closure-compiler fix - final is a reserved word

parent c295535e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment