Skip to content

Commit

Permalink
Ensure prototype isn't modified by zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuk authored Jun 23, 2021
1 parent d024c22 commit bb38812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/asserts/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ QUnit.module("load", function () {
assert.ok(typeof file === "string");
JSZip.loadAsync(file)
.then(function (zip) {
return zip.file("toString").async("string");
})
assert.notEqual(Object.getPrototypeOf(zip.files), zip.files.__proto__);
return zip.file("__proto__").async("string"); })
.then(function(result) {
assert.equal(result, "hello\n", "the zip was correctly read.");
done();
Expand Down

0 comments on commit bb38812

Please sign in to comment.