summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/JavaScriptCore/runtime
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-10 09:33:25 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-10 09:33:25 (GMT)
commit80b91eeb991bd6962feb4bdb1f492fcd807389a0 (patch)
tree826cf1b92ecf3778b926d312e9e244c49e50b00d /src/3rdparty/webkit/JavaScriptCore/runtime
parent692f13f4980cf13acef3164bfe2d89721e09a406 (diff)
downloadQt-80b91eeb991bd6962feb4bdb1f492fcd807389a0.zip
Qt-80b91eeb991bd6962feb4bdb1f492fcd807389a0.tar.gz
Qt-80b91eeb991bd6962feb4bdb1f492fcd807389a0.tar.bz2
don't add the jscprint function when building QtScript
QtScript defines its own print function.
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/runtime')
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.cpp b/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.cpp
index 3514040..55286d3 100644
--- a/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.cpp
+++ b/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.cpp
@@ -340,8 +340,10 @@ void JSGlobalObject::reset(JSValue prototype)
putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, d()->prototypeFunctionStructure.get(), 1, Identifier(exec, "encodeURI"), globalFuncEncodeURI), DontEnum);
putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, d()->prototypeFunctionStructure.get(), 1, Identifier(exec, "encodeURIComponent"), globalFuncEncodeURIComponent), DontEnum);
#ifndef NDEBUG
+#ifndef QT_BUILD_SCRIPT_LIB
putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, d()->prototypeFunctionStructure.get(), 1, Identifier(exec, "jscprint"), globalFuncJSCPrint), DontEnum);
#endif
+#endif
resetPrototype(prototype);
}