Skip to content

Commit 5cfbd6e

Browse files
committed
add test
1 parent 2bec998 commit 5cfbd6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: test/jasmine/tests/lib_test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,9 @@ describe('Test lib.js:', function() {
468468

469469
it('should fail on a bad property string', function() {
470470
var badStr = [
471-
[], {}, false, undefined, null, NaN, Infinity
471+
[], {}, false, undefined, null, NaN, Infinity,
472+
// should guard against prototype pollution
473+
'x.__proto__.polluted', 'x.y.__proto__.polluted'
472474
];
473475

474476
function badProp(i) {

0 commit comments

Comments
 (0)