Skip to content

Commit

Permalink
failing test for protocol pollution
Browse files Browse the repository at this point in the history
  • Loading branch information
substack committed Mar 10, 2020
1 parent 29783cd commit 0efed03
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/proto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var parse = require('../');
var test = require('tape');

test('proto pollution', function (t) {
var argv = parse(['--__proto__.x','123']);
t.equal({}.x, undefined);
t.end();
});

0 comments on commit 0efed03

Please sign in to comment.