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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy