Changeset 283366 in webkit
- Timestamp:
- Oct 1, 2021, 7:23:58 AM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
-
API/glib/JSCContext.cpp (modified) (1 diff)
-
API/glib/JSCWrapperMap.cpp (modified) (2 diffs)
-
API/glib/JSCWrapperMap.h (modified) (1 diff)
-
ChangeLog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/glib/JSCContext.cpp
r275031 r283366 236 236 return jsWrapper; 237 237 238 return wrapperMap(context).createJSWrapp per(context->priv->jsContext.get(), jsClass, prototype, wrappedObject, destroyFunction);238 return wrapperMap(context).createJSWrapper(context->priv->jsContext.get(), jsClass, prototype, wrappedObject, destroyFunction); 239 239 } 240 240 241 241 JSGlobalContextRef jscContextCreateContextWithJSWrapper(JSCContext* context, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction) 242 242 { 243 return wrapperMap(context).createContextWithJSWrapp per(jscVirtualMachineGetContextGroup(context->priv->vm.get()), jsClass, prototype, wrappedObject, destroyFunction);243 return wrapperMap(context).createContextWithJSWrapper(jscVirtualMachineGetContextGroup(context->priv->vm.get()), jsClass, prototype, wrappedObject, destroyFunction); 244 244 } 245 245 -
trunk/Source/JavaScriptCore/API/glib/JSCWrapperMap.cpp
r274201 r283366 76 76 } 77 77 78 JSObject* WrapperMap::createJSWrapp per(JSGlobalContextRef jsContext, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction)78 JSObject* WrapperMap::createJSWrapper(JSGlobalContextRef jsContext, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction) 79 79 { 80 80 ASSERT(toJSGlobalObject(jsContext)->wrapperMap() == this); … … 94 94 } 95 95 96 JSGlobalContextRef WrapperMap::createContextWithJSWrapp per(JSContextGroupRef jsGroup, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction)96 JSGlobalContextRef WrapperMap::createContextWithJSWrapper(JSContextGroupRef jsGroup, JSClassRef jsClass, JSValueRef prototype, gpointer wrappedObject, GDestroyNotify destroyFunction) 97 97 { 98 98 Ref<VM> vm(*toJS(jsGroup)); -
trunk/Source/JavaScriptCore/API/glib/JSCWrapperMap.h
r234025 r283366 48 48 JSCClass* registeredClass(JSClassRef) const; 49 49 50 JSObject* createJSWrapp per(JSGlobalContextRef, JSClassRef, JSValueRef prototype, gpointer, GDestroyNotify);51 JSGlobalContextRef createContextWithJSWrapp per(JSContextGroupRef, JSClassRef, JSValueRef prototype, gpointer, GDestroyNotify);50 JSObject* createJSWrapper(JSGlobalContextRef, JSClassRef, JSValueRef prototype, gpointer, GDestroyNotify); 51 JSGlobalContextRef createContextWithJSWrapper(JSContextGroupRef, JSClassRef, JSValueRef prototype, gpointer, GDestroyNotify); 52 52 JSObject* jsWrapper(gpointer wrappedObject) const; 53 53 gpointer wrappedObject(JSGlobalContextRef, JSObjectRef) const; -
trunk/Source/JavaScriptCore/ChangeLog
r283348 r283366 1 2021-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 1 18 2021-09-30 Yusuke Suzuki <ysuzuki@apple.com> 2 19
Note:
See TracChangeset
for help on using the changeset viewer.