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 6e95c43 commit e8fb281Copy full SHA for e8fb281
test/test.js
@@ -531,6 +531,20 @@ suite('Unflatten', function () {
531
})
532
533
}
534
+
535
+ test('should not pollute prototype', function () {
536
+ unflatten({
537
+ '__proto__.polluted': true
538
+ });
539
540
+ 'prefix.__proto__.polluted': true
541
542
543
+ 'prefix.0.__proto__.polluted': true
544
545
546
+ assert.notStrictEqual({}.polluted, true);
547
+ })
548
549
550
suite('Arrays', function () {
0 commit comments