From f9091c5b4be666413a1b28a6265b00cde6391e75 Mon Sep 17 00:00:00 2001 From: Yoshi Cheng-Hao Huang Date: Fri, 12 Apr 2019 08:58:42 +0000 Subject: [PATCH] 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 --- js/src/vm/Iteration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/vm/Iteration.cpp b/js/src/vm/Iteration.cpp index cad21dbdccde..a81df15c283e 100644 --- a/js/src/vm/Iteration.cpp +++ b/js/src/vm/Iteration.cpp @@ -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)) {