From e42c45a512234df0610c5273e4b0963d7375f1da Mon Sep 17 00:00:00 2001 From: Jan de Mooij Date: Tue, 9 Jan 2018 16:37:12 -0500 Subject: [PATCH] Bug 1427126 - Use setElementWithType instead of setElement in AppendToList. r=bhackett --HG-- extra : rebase_source : e739fe98c47bc5aa890d191ee5f6ad9998ca2910 --- js/src/vm/List-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/vm/List-inl.h b/js/src/vm/List-inl.h index 8860c080b3b5..f9dd08642e65 100644 --- a/js/src/vm/List-inl.h +++ b/js/src/vm/List-inl.h @@ -33,7 +33,7 @@ AppendToList(JSContext* cx, HandleNativeObject list, HandleValue value) return false; list->ensureDenseInitializedLength(cx, length, 1); - list->setDenseElement(length, value); + list->setDenseElementWithType(cx, length, value); return true; }