mirror of https://github.com/grpc/grpc-node.git
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…
Reference in New Issue