[Webkit-unassigned] [Bug 42242] New: [Qt] Implement QScriptEngine::newFunction() parts that depend on QScriptContext
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 14 02:19:44 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=42242
Summary: [Qt] Implement QScriptEngine::newFunction() parts that
depend on QScriptContext
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: kent.hansen at nokia.com
Blocks: 41662
As a start, a QScriptContext can be constructed in our custom JSObjectCallAsFunctionCallback, passing the function, thisObject, argumentCount, and arguments to it; e.g.
QScriptContext *QScriptEnginePrivate::createContext(function, thisObject, argumentCount, arguments);
This would be sufficient to implement QScriptContext::argument(), QScriptContext::argumentCount(), QScriptContext::callee(), and QScriptContext::thisObject().
Ideally retrieving the information could be delegated to JSContextRef, but it doesn't have the API for it currently. The above approach should cover 95% of the use-cases for QScriptContext wrt. QScriptEngine::newFunction(), however.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list