Avoid triggering Object.prototype.__proto__ with keys (#2251)
This way, the diff algorithm works with untrusted keys.
This commit is contained in:
parent
d2ca44b693
commit
88b17c1c60
3 changed files with 19 additions and 2 deletions
|
|
@ -521,7 +521,7 @@ module.exports = function($window) {
|
|||
}
|
||||
}
|
||||
function getKeyMap(vnodes, start, end) {
|
||||
var map = {}
|
||||
var map = Object.create(null)
|
||||
for (; start < end; start++) {
|
||||
var vnode = vnodes[start]
|
||||
if (vnode != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue