Bug 1389974 - Avoid taking reference to temporary Value because it hides from hazard analysis, r=jonco

--HG--
extra : rebase_source : 364ab0b1b980cf2c0be6adad54f0314310887e61
extra : histedit_source : 136a8920019838d5f659595a2dee82af2ef15fe4
This commit is contained in:
Steve Fink 2017-08-30 16:35:34 -07:00
parent 806b4e7219
commit a81be745e7

View File

@ -1242,7 +1242,7 @@ ArrayJoinDenseKernel(JSContext* cx, SeparatorOp sepOp, HandleObject obj, uint64_
return DenseElementResult::Failure;
// Step 7.b.
const Value& elem = GetBoxedOrUnboxedDenseElement<Type>(obj, *numProcessed);
Value elem = GetBoxedOrUnboxedDenseElement<Type>(obj, *numProcessed);
// Steps 7.c-d.
if (elem.isString()) {