mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1190727 - Make initialization of temporary results array resilient against Array.prototype setters in self-hosted Map#next implementation. r=jandem
This commit is contained in:
parent
f41c4e972f
commit
89d4535286
@ -47,11 +47,8 @@ function MapIteratorNext() {
|
||||
// Steps 8-9 (omitted).
|
||||
|
||||
var mapIterationResultPair = iteratorTemp.mapIterationResultPair;
|
||||
if (!mapIterationResultPair) {
|
||||
mapIterationResultPair = iteratorTemp.mapIterationResultPair = NewDenseArray(2);
|
||||
mapIterationResultPair[0] = null;
|
||||
mapIterationResultPair[1] = null;
|
||||
}
|
||||
if (!mapIterationResultPair)
|
||||
mapIterationResultPair = iteratorTemp.mapIterationResultPair = [null, null];
|
||||
|
||||
var retVal = {value: undefined, done: true};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user