From f33379a26284d48dfd006a250c3b71806075d902 Mon Sep 17 00:00:00 2001 From: Jan de Mooij Date: Mon, 24 Jul 2017 18:41:12 -0400 Subject: [PATCH] Bug 1368362 - Use setSlotWithType instead of setSlot in InitGlobalLexicalOperation. r=shu --HG-- extra : amend_source : 7dc591f4c43ebc5ff5fe9d3c4f216a2ac9b2dd6e --- js/src/vm/Interpreter-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/vm/Interpreter-inl.h b/js/src/vm/Interpreter-inl.h index 0d2f9c481419..b8507b2f1bd7 100644 --- a/js/src/vm/Interpreter-inl.h +++ b/js/src/vm/Interpreter-inl.h @@ -398,7 +398,7 @@ InitGlobalLexicalOperation(JSContext* cx, LexicalEnvironmentObject* lexicalEnvAr Rooted lexicalEnv(cx, lexicalEnvArg); RootedShape shape(cx, lexicalEnv->lookup(cx, script->getName(pc))); MOZ_ASSERT(shape); - lexicalEnv->setSlot(shape->slot(), value); + lexicalEnv->setSlotWithType(cx, shape, value); } inline bool