Skip to content

Commit 0efed03

Browse files
author
substack
committed
failing test for protocol pollution
1 parent 29783cd commit 0efed03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/proto.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var parse = require('../');
2+
var test = require('tape');
3+
4+
test('proto pollution', function (t) {
5+
var argv = parse(['--__proto__.x','123']);
6+
t.equal({}.x, undefined);
7+
t.end();
8+
});

0 commit comments

Comments
 (0)