diff options
Diffstat (limited to 'node_modules/pako/lib/deflate.js')
-rw-r--r-- | node_modules/pako/lib/deflate.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/pako/lib/deflate.js b/node_modules/pako/lib/deflate.js index 11040d4ec..efeb00c7b 100644 --- a/node_modules/pako/lib/deflate.js +++ b/node_modules/pako/lib/deflate.js @@ -39,7 +39,7 @@ var Z_DEFLATED = 8; /* internal * Deflate.chunks -> Array * - * Chunks of output data, if [[Deflate#onData]] not overriden. + * Chunks of output data, if [[Deflate#onData]] not overridden. **/ /** @@ -192,7 +192,7 @@ function Deflate(options) { * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be * converted to utf8 byte sequence. * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes. - * See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH. + * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH. * * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with * new compressed chunks. Returns `true` on success. The last data block must have @@ -281,7 +281,7 @@ Deflate.prototype.push = function (data, mode) { /** * Deflate#onData(chunk) -> Void - * - chunk (Uint8Array|Array|String): ouput data. Type of array depends + * - chunk (Uint8Array|Array|String): output data. Type of array depends * on js engine support. When string output requested, each chunk * will be string. * @@ -358,7 +358,7 @@ function deflate(input, options) { deflator.push(input, true); // That will never happens, if you don't cheat with options :) - if (deflator.err) { throw deflator.msg; } + if (deflator.err) { throw deflator.msg || msg[deflator.err]; } return deflator.result; } |