diff options
-rw-r--r-- | src/script/api/qscriptcontextinfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/api/qscriptcontextinfo.cpp b/src/script/api/qscriptcontextinfo.cpp index 4e28d62..eb9daf0 100644 --- a/src/script/api/qscriptcontextinfo.cpp +++ b/src/script/api/qscriptcontextinfo.cpp @@ -157,6 +157,8 @@ QScriptContextInfoPrivate::QScriptContextInfoPrivate(const QScriptContext *conte const JSC::ExecState *frame = reinterpret_cast<const JSC::ExecState *>(context); JSC::JSObject *callee = frame->callee(); + if (callee && callee->isObject(&JSC::InternalFunction::info)) + functionName = QScript::qtStringFromJSCUString(JSC::asInternalFunction(callee)->name(&frame->globalData())); if (callee && callee->isObject(&JSC::JSFunction::info)) { functionType = QScriptContextInfo::ScriptFunction; JSC::SourceProvider *source = frame->codeBlock()->source(); |