Bug 634136 - Add missing argc check to TypedArrayTemplate::create (r=dvander)

--HG--
extra : rebase_source : 903586c7265f6a1b527fa3a1ebfaf3df6b789086
This commit is contained in:
Luke Wagner 2011-02-14 17:07:21 -08:00
Родитель 31e333792b
Коммит ddce701e6b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;