Bug 1287047 - ExposeToActiveJS the callee when creating a hollow CallObject for Debugger.Environment. (r=jimb)

This commit is contained in:
Shu-yu Guo 2016-10-17 14:05:54 -07:00
Родитель 632ab10f06
Коммит dc1c20cfdd
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -2875,6 +2875,7 @@ GetDebugEnvironmentForMissing(JSContext* cx, const EnvironmentIter& ei)
// Generators should always reify their scopes.
MOZ_ASSERT(!callee->isGenerator());
JS::ExposeObjectToActiveJS(callee);
Rooted<CallObject*> callobj(cx, CallObject::createHollowForDebug(cx, callee));
if (!callobj)
return nullptr;