18#ifndef INCLUDED_SCRIPTREQUEST
19#define INCLUDED_SCRIPTREQUEST
24#if GCC_VERSION || CLANG_VERSION
25# pragma GCC diagnostic push
26# pragma GCC diagnostic ignored "-Wunused-parameter"
27# pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
29# pragma warning(push, 1)
32#include "js/RootingAPI.h"
34#if GCC_VERSION || CLANG_VERSION
35# pragma GCC diagnostic pop
Abstraction around a SpiderMonkey JS::Realm.
Definition: ScriptInterface.h:72
Spidermonkey maintains some 'local' state via the JSContext* object.
Definition: ScriptRequest.h:60
const ScriptInterface & GetScriptInterface() const
Return the scriptInterface active when creating this ScriptRequest.
Definition: ScriptInterface.cpp:98
ScriptRequest & operator=(const ScriptRequest &rq)=delete
ScriptRequest(std::shared_ptr< ScriptInterface > scriptInterface)
Definition: ScriptRequest.h:71
JS::Value globalValue() const
Definition: ScriptInterface.cpp:93
JSContext * cx
Definition: ScriptRequest.h:92
ScriptRequest(const ScriptRequest &rq)=delete
~ScriptRequest()
Definition: ScriptInterface.cpp:84
JS::HandleObject nativeScope
Definition: ScriptRequest.h:94
const ScriptInterface & m_ScriptInterface
Definition: ScriptRequest.h:96
ScriptRequest(const ScriptInterface *scriptInterface)
Definition: ScriptRequest.h:70
JS::HandleObject glob
Definition: ScriptRequest.h:93
JS::Realm * m_FormerRealm
Definition: ScriptRequest.h:97