Skip to content

Commit a665550

Browse files
committed
test($parse): fix test for Firefox and IE
1 parent d434f3d commit a665550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ng/parseSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ describe('parser', function() {
12181218
it('should prevent the exploit', function() {
12191219
expect(function() {
12201220
scope.$eval('(1)[{0: "__proto__", 1: "__proto__", 2: "__proto__", 3: "safe", length: 4, toString: [].pop}].foo = 1');
1221-
}).toThrow();
1221+
});
12221222
if (!msie || msie > 10) {
12231223
expect((1)['__proto__'].foo).toBeUndefined();
12241224
}

0 commit comments

Comments
 (0)