diff options
-rw-r--r-- | src/script/bridge/qscriptfunction.cpp | 2 | ||||
-rw-r--r-- | src/script/bridge/qscriptfunction_p.h | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/script/bridge/qscriptfunction.cpp b/src/script/bridge/qscriptfunction.cpp index 5b3de9e..1c8ea91 100644 --- a/src/script/bridge/qscriptfunction.cpp +++ b/src/script/bridge/qscriptfunction.cpp @@ -60,6 +60,8 @@ ASSERT_CLASS_FITS_IN_CELL(QScript::FunctionWithArgWrapper); namespace QScript { +const JSC::ClassInfo FunctionWrapper::info = { "QtNativeFunctionWrapper", &PrototypeFunction::info, 0, 0 }; +const JSC::ClassInfo FunctionWithArgWrapper::info = { "QtNativeFunctionWithArgWrapper", &PrototypeFunction::info, 0, 0 }; FunctionWrapper::FunctionWrapper(JSC::ExecState *exec, int length, const JSC::Identifier &name, QScriptEngine::FunctionSignature function) diff --git a/src/script/bridge/qscriptfunction_p.h b/src/script/bridge/qscriptfunction_p.h index 4901b72..6967274 100644 --- a/src/script/bridge/qscriptfunction_p.h +++ b/src/script/bridge/qscriptfunction_p.h @@ -79,6 +79,12 @@ public: QScriptEngine::FunctionSignature); ~FunctionWrapper(); + virtual const JSC::ClassInfo* classInfo() const { return &info; } + static const JSC::ClassInfo info; + + QScriptEngine::FunctionSignature function() const + { return data->function; } + private: virtual JSC::ConstructType getConstructData(JSC::ConstructData&); @@ -105,6 +111,15 @@ public: QScriptEngine::FunctionWithArgSignature, void *); ~FunctionWithArgWrapper(); + virtual const JSC::ClassInfo* classInfo() const { return &info; } + static const JSC::ClassInfo info; + + QScriptEngine::FunctionWithArgSignature function() const + { return data->function; } + + void *arg() const + { return data->arg; } + private: virtual JSC::ConstructType getConstructData(JSC::ConstructData&); |