зеркало из https://github.com/mozilla/gecko-dev.git
Bug 634136 - Add missing argc check to TypedArrayTemplate::create (r=dvander)
--HG-- extra : rebase_source : 903586c7265f6a1b527fa3a1ebfaf3df6b789086
This commit is contained in:
Родитель
31e333792b
Коммит
ddce701e6b
|
@ -768,7 +768,7 @@ class TypedArrayTemplate
|
|||
cx->destroy<ThisTypeArray>(tarray);
|
||||
return false;
|
||||
}
|
||||
} else if (argv[0].isObject()) {
|
||||
} else if (argc > 0 && argv[0].isObject()) {
|
||||
int32_t byteOffset = -1;
|
||||
int32_t length = -1;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче