From 09e04cb7410b657d8ee346b7c2dbc5a5c719a66f Mon Sep 17 00:00:00 2001 From: Yves Date: Sun, 13 Jul 2014 22:08:29 +0000 Subject: [PATCH] Adds missing request (fixes tests in debug mode). This was SVN commit r15530. --- source/scriptinterface/ScriptInterface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/scriptinterface/ScriptInterface.cpp b/source/scriptinterface/ScriptInterface.cpp index 86d7727ff1..85c3ad95e4 100644 --- a/source/scriptinterface/ScriptInterface.cpp +++ b/source/scriptinterface/ScriptInterface.cpp @@ -1267,6 +1267,7 @@ bool ScriptInterface::LoadGlobalScriptFile(const VfsPath& path) bool ScriptInterface::Eval(const char* code) { + JSAutoRequest rq(m->m_cx); JS::RootedValue rval(m->m_cx); return Eval_(code, &rval); }