update
This commit is contained in:
+14
@@ -531,6 +531,20 @@ suite('Unflatten', function () {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
test('should not pollute prototype', function () {
|
||||
unflatten({
|
||||
'__proto__.polluted': true
|
||||
})
|
||||
unflatten({
|
||||
'prefix.__proto__.polluted': true
|
||||
})
|
||||
unflatten({
|
||||
'prefix.0.__proto__.polluted': true
|
||||
})
|
||||
|
||||
assert.notStrictEqual({}.polluted, true)
|
||||
})
|
||||
})
|
||||
|
||||
suite('Arrays', function () {
|
||||
|
||||
Reference in New Issue
Block a user