We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6457d74 commit 1043d21Copy full SHA for 1043d21
test/proto.js
@@ -35,3 +35,10 @@ test('proto pollution (string)', function (t) {
35
t.equal(argv.x.z, undefined);
36
t.end();
37
});
38
+
39
+test('proto pollution (constructor)', function (t) {
40
+ var argv = parse(['--constructor.prototype.y','123']);
41
+ t.equal({}.y, undefined);
42
+ t.equal(argv.y, undefined);
43
+ t.end();
44
+});
0 commit comments