[Webkit-unassigned] [Bug 41662] New: [Qt] QScriptEngine should have an API for wrapping a C function
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 6 01:45:54 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=41662
Summary: [Qt] QScriptEngine should have an API for wrapping a C
function
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: All
Status: NEW
Keywords: Qt, QtTriaged
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: kent.hansen at nokia.com
Blocks: 31863
See http://doc.trolltech.com/latest/qscriptengine.html#newFunction
This provides functionality similar to JSObjectMakeFunctionWithCallback() and JSObjectMakeConstructor() in the JSC C API.
Implementing this feature also requires implementing the QScriptContext class (see http://doc.trolltech.com/latest/qscriptcontext.html), which provides the arguments, callee and this-object for a particular invocation of the function.
In QtScript, the same type of callback is used for both normal functions and constructors; QScriptContext::isCalledAsConstructor() can be used to query whether the function was called as a constructor (e.g. as operand to "new").
--
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