EventsFilter#Push(): ensure not to modify the global namespace

This commit is contained in:
Alexander A. Klimov 2019-04-23 11:02:01 +02:00 committed by Michael Friedrich
parent c209cf830b
commit e86e3cc234

View File

@ -263,7 +263,7 @@ void EventsFilter::Push(Dictionary::Ptr event)
{ {
for (auto& perFilter : m_Inboxes) { for (auto& perFilter : m_Inboxes) {
if (perFilter.first) { if (perFilter.first) {
ScriptFrame frame(true); ScriptFrame frame(true, new Namespace());
frame.Sandboxed = true; frame.Sandboxed = true;
try { try {