[Webkit-unassigned] [Bug 197134] Can't create a const attribute via the JSC C API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 20 19:44:37 PDT 2019


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

--- Comment #2 from Sam Weinig <sam at webkit.org> ---
Or, if you don't want to go the callback route, you can create the properties after the object has been created.

JSObjectSetProperty(ctx, objectToAddPropertyTo, JSStringCreateWithUTF8CString("constantValue), JSValueMakeNumber(ctx, 7), kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete, &exceptionPtr);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190421/ffa30fdc/attachment.html>


More information about the webkit-unassigned mailing list