mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
added test case
This commit is contained in:
parent
b2530119b9
commit
6101694397
@ -24,4 +24,8 @@ describe('loadPackageDefinition', () => {
|
||||
loadPackageDefinition({'__proto__.polluted': true} as any);
|
||||
assert.notStrictEqual(({} as any).polluted, true);
|
||||
});
|
||||
it('Should not allow prototype pollution #2', () => {
|
||||
loadPackageDefinition({'constructor.prototype.polluted': true} as any);
|
||||
assert.notStrictEqual(({} as any).polluted, true);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user