Commit 507879a1 authored by mitz@apple.com's avatar mitz@apple.com
Browse files

<rdar://problem/15114974> Assertion failure under -[JSObjCClassInfo...

<rdar://problem/15114974> Assertion failure under -[JSObjCClassInfo allocateConstructorAndPrototypeWithSuperClassInfo:] if no classes conform to JSExport
https://bugs.webkit.org/show_bug.cgi?id=122124

Reviewed by Darin Adler.

* API/JSWrapperMap.mm: Defined an empty class that conforms to the JSExport protocol, to
ensure that the protocol is always registered with the runtime by the time
getJSExportProtocol() is called.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 32bbc4c1
......@@ -506,6 +506,12 @@ id tryUnwrapObjcObject(JSGlobalContextRef context, JSValueRef value)
return nil;
}
// This class ensures that the JSExport protocol is registered with the runtime.
NS_ROOT_CLASS @interface JSExport <JSExport>
@end
@implementation JSExport
@end
Protocol *getJSExportProtocol()
{
static Protocol *protocol = objc_getProtocol("JSExport");
......
2013-09-30 Dan Bernstein <mitz@apple.com>
<rdar://problem/15114974> Assertion failure under -[JSObjCClassInfo allocateConstructorAndPrototypeWithSuperClassInfo:] if no classes conform to JSExport
https://bugs.webkit.org/show_bug.cgi?id=122124
Reviewed by Darin Adler.
* API/JSWrapperMap.mm: Defined an empty class that conforms to the JSExport protocol, to
ensure that the protocol is always registered with the runtime by the time
getJSExportProtocol() is called.
2013-09-30 Benjamin Poulain <benjamin@webkit.org>
 
Remove the code guarded by STYLE_SCOPED
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment