Bug 1542980 - fixed js shell compilation error. r=jonco

This is from Bug 1534967, and the code is wrapped with compiler option
`JS_MORE_DETERMINISTIC`, which is only enabled through
'--enable-more-deterministic' in shell configure.

Differential Revision: https://phabricator.services.mozilla.com/D26656

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Yoshi Cheng-Hao Huang 2019-04-12 08:58:42 +00:00
Родитель cc0dfb6948
Коммит f9091c5b4b
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -524,8 +524,8 @@ static bool Snapshot(JSContext* cx, HandleObject pobj_, unsigned flags,
* behaviors are technically correct to do.
*/
jsid* ids = props->begin();
size_t n = props->length();
jsid* ids = props.begin();
size_t n = props.length();
RootedIdVector tmp(cx);
if (!tmp.resize(n)) {