Skip to content

Commit c4817cd

Browse files
committed
test($parse): fix test for IE
1 parent afb65c1 commit c4817cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ng/parseSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,9 +1120,9 @@ describe('parser', function() {
11201120
});
11211121

11221122
it('should prevent the exploit', function() {
1123-
expect(function() {
1123+
try {
11241124
scope.$eval('(1)[{0: "__proto__", 1: "__proto__", 2: "__proto__", 3: "safe", length: 4, toString: [].pop}].foo = 1');
1125-
}).toThrow();
1125+
} catch(e) { /* ignore */ };
11261126
if (!msie || msie > 10) {
11271127
expect((1)['__proto__'].foo).toBeUndefined();
11281128
}

0 commit comments

Comments
 (0)