mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
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:
parent
806b4e7219
commit
a81be745e7
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user