Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added code to pass unit tests

  • Loading branch information...
commit f16a3c622eabdde1c36226edded35ad1a0d56a11 1 parent ef16396
amarcu5 authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 jszip.js
4 jszip.js
@@ -475,6 +475,10 @@ JSZip.prototype = (function () {
475 475 });
476 476 var compression = options.compression.toUpperCase();
477 477
  478 + if (!JSZip.compressions[compression]) {
  479 + throw compression + " is not a valid compression method !";
  480 + }
  481 +
478 482 // The central directory, and files data
479 483 var directory = [], files = [], fileOffset = 0;
480 484

0 comments on commit f16a3c6

Please sign in to comment.
Something went wrong with that request. Please try again.