From 41386e9cb918eed93b3f13648cbef387e371e451 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 20 May 2015 09:56:07 +0000 Subject: webkitgtk-2.4.9 --- Source/JavaScriptCore/inspector/InjectedScriptModule.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/JavaScriptCore/inspector/InjectedScriptModule.cpp') diff --git a/Source/JavaScriptCore/inspector/InjectedScriptModule.cpp b/Source/JavaScriptCore/inspector/InjectedScriptModule.cpp index 5ba27e080..f2b29d255 100644 --- a/Source/JavaScriptCore/inspector/InjectedScriptModule.cpp +++ b/Source/JavaScriptCore/inspector/InjectedScriptModule.cpp @@ -32,6 +32,8 @@ #include "config.h" #include "InjectedScriptModule.h" +#if ENABLE(INSPECTOR) + #include "InjectedScript.h" #include "InjectedScriptManager.h" #include "ScriptFunctionCall.h" @@ -61,7 +63,6 @@ void InjectedScriptModule::ensureInjected(InjectedScriptManager* injectedScriptM return; // FIXME: Make the InjectedScript a module itself. - JSC::JSLockHolder locker(injectedScript.scriptState()); Deprecated::ScriptFunctionCall function(injectedScript.injectedScriptObject(), ASCIILiteral("module"), injectedScriptManager->inspectorEnvironment().functionCallHandler()); function.appendArgument(name()); bool hadException = false; @@ -86,3 +87,5 @@ void InjectedScriptModule::ensureInjected(InjectedScriptManager* injectedScriptM } } // namespace Inspector + +#endif // ENABLE(INSPECTOR) -- cgit v1.2.1