зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1287047 - ExposeToActiveJS the callee when creating a hollow CallObject for Debugger.Environment. (r=jimb)
This commit is contained in:
Родитель
632ab10f06
Коммит
dc1c20cfdd
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче