[Webkit-unassigned] [Bug 20753] New: JSValueToStringCopy is DLL exported in WebKit.dll on Windows, but you can't get at its data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 9 15:10:30 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20753

           Summary: JSValueToStringCopy is DLL exported in WebKit.dll on
                    Windows, but you can't get at its data
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: matty.hall at gmail.com


WebKit.dll exposes a bunch of methods via DLL exports on Windows.  One such
method is defined as follows:

JSStringRef JSValueToStringCopy(
    JSContextRef ctx,
    JSValueRef value,
    JSValueRef *exception);

Unfortunately, there's no way to get data out of this type without compiling
against WebKit's headers to pickup the definition for JSStringRef.  This
differs from the following exported methods, which actually return a "native"
type that one can use without requiring you to compile against WebKit:

bool JSValueToBoolean(
    JSContextRef ctx,
    JSValueRef value);

double JSValueToNumber(
    JSContextRef ctx,
    JSValueRef value,
    JSValueRef *exception);

It would be really nice if a similar method existed to actually get the string
data out of the JSStringRef type:

wchar_t* JSStringRefToCharsCopy(JSStringRef str);


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list