Skip to content

Commit bb38812

Browse files
authored
Ensure prototype isn't modified by zip file
1 parent d024c22 commit bb38812

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/asserts/load.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ QUnit.module("load", function () {
2222
assert.ok(typeof file === "string");
2323
JSZip.loadAsync(file)
2424
.then(function (zip) {
25-
return zip.file("toString").async("string");
26-
})
25+
assert.notEqual(Object.getPrototypeOf(zip.files), zip.files.__proto__);
26+
return zip.file("__proto__").async("string"); })
2727
.then(function(result) {
2828
assert.equal(result, "hello\n", "the zip was correctly read.");
2929
done();

0 commit comments

Comments
 (0)