⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 283366 in webkit


Ignore:
Timestamp:
Oct 1, 2021, 7:23:58 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[JSC][GLib] Fix typo in WrapperMap creation methods
https://bugs.webkit.org/show_bug.cgi?id=231076

Patch by Olivier Blin <Olivier Blin> on 2021-10-01
Reviewed by Michael Catanzaro.

  • API/glib/JSCContext.cpp:

(jscContextGetOrCreateJSWrapper):
(jscContextCreateContextWithJSWrapper):

  • API/glib/JSCWrapperMap.cpp:

(JSC::WrapperMap::createJSWrapper):
(JSC::WrapperMap::createContextWithJSWrapper):
(JSC::WrapperMap::createJSWrappper): Deleted.
(JSC::WrapperMap::createContextWithJSWrappper): Deleted.

  • API/glib/JSCWrapperMap.h:
Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/glib/JSCContext.cpp

    r275031 r283366  
    236236        return jsWrapper;
    237237
    238     return wrapperMap(context).createJSWrappper(context->priv->jsContext.get(), jsClass, prototype, wrappedObject, destroyFunction);
     238    return wrapperMap(context).createJSWrapper(context->priv->jsContext.get(), jsClass, prototype, wrappedObject, destroyFunction);
    239239}
    240240
    241241JSGlobalContextRef jscContextCreateContextWithJSWrapper(JSCContext* context, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction)
    242242{
    243     return wrapperMap(context).createContextWithJSWrappper(jscVirtualMachineGetContextGroup(context->priv->vm.get()), jsClass, prototype, wrappedObject, destroyFunction);
     243    return wrapperMap(context).createContextWithJSWrapper(jscVirtualMachineGetContextGroup(context->priv->vm.get()), jsClass, prototype, wrappedObject, destroyFunction);
    244244}
    245245
  • trunk/Source/JavaScriptCore/API/glib/JSCWrapperMap.cpp

    r274201 r283366  
    7676}
    7777
    78 JSObject* WrapperMap::createJSWrappper(JSGlobalContextRef jsContext, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction)
     78JSObject* WrapperMap::createJSWrapper(JSGlobalContextRef jsContext, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction)
    7979{
    8080    ASSERT(toJSGlobalObject(jsContext)->wrapperMap() == this);
     
    9494}
    9595
    96 JSGlobalContextRef WrapperMap::createContextWithJSWrappper(JSContextGroupRef jsGroup, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction)
     96JSGlobalContextRef WrapperMap::createContextWithJSWrapper(JSContextGroupRef jsGroup, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction)
    9797{
    9898    Ref<VM> vm(*toJS(jsGroup));
  • trunk/Source/JavaScriptCore/API/glib/JSCWrapperMap.h

    r234025 r283366  
    4848    JSCClass* registeredClass(JSClassRef) const;
    4949
    50     JSObject* createJSWrappper(JSGlobalContextRef, JSClassRef, JSValueRef prototype, gpointer, GDestroyNotify);
    51     JSGlobalContextRef createContextWithJSWrappper(JSContextGroupRef, JSClassRef, JSValueRef prototype, gpointer, GDestroyNotify);
     50    JSObject* createJSWrapper(JSGlobalContextRef, JSClassRef, JSValueRef prototype, gpointer, GDestroyNotify);
     51    JSGlobalContextRef createContextWithJSWrapper(JSContextGroupRef, JSClassRef, JSValueRef prototype, gpointer, GDestroyNotify);
    5252    JSObject* jsWrapper(gpointer wrappedObject) const;
    5353    gpointer wrappedObject(JSGlobalContextRef, JSObjectRef) const;
  • trunk/Source/JavaScriptCore/ChangeLog

    r283348 r283366  
     12021-10-01  Olivier Blin  <olivier.blin@softathome.com>
     2
     3        [JSC][GLib] Fix typo in WrapperMap creation methods
     4        https://bugs.webkit.org/show_bug.cgi?id=231076
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * API/glib/JSCContext.cpp:
     9        (jscContextGetOrCreateJSWrapper):
     10        (jscContextCreateContextWithJSWrapper):
     11        * API/glib/JSCWrapperMap.cpp:
     12        (JSC::WrapperMap::createJSWrapper):
     13        (JSC::WrapperMap::createContextWithJSWrapper):
     14        (JSC::WrapperMap::createJSWrappper): Deleted.
     15        (JSC::WrapperMap::createContextWithJSWrappper): Deleted.
     16        * API/glib/JSCWrapperMap.h:
     17
    1182021-09-30  Yusuke Suzuki  <ysuzuki@apple.com>
    219
Note: See TracChangeset for help on using the changeset viewer.