summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/inspector/InjectedScriptModule.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
commit41386e9cb918eed93b3f13648cbef387e371e451 (patch)
treea97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/JavaScriptCore/inspector/InjectedScriptModule.cpp
parente15dd966d523731101f70ccf768bba12435a0208 (diff)
downloadWebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/JavaScriptCore/inspector/InjectedScriptModule.cpp')
-rw-r--r--Source/JavaScriptCore/inspector/InjectedScriptModule.cpp5
1 files changed, 4 insertions, 1 deletions
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)