GNOME Bugzilla – Bug 561203
Fix priv_from_js_with_typecheck() for dynamic types
Last modified: 2008-11-18 12:41:22 UTC
For the dynamic case, priv_from_js_with_typecheck() can't call JS_InstanceOf(), since the dynamic class isn't an instance of the static class. Instead do the checks in gjs_get_instance_private_dynamic(), but don't raise exceptions.
Created attachment 122842 [details] [review] Fix priv_from_js_with_typecheck() for dynamic types
Looks reasonable, but what is the story on why this wasn't totally breaking everything? I guess we were never using priv_from_js_with_typecheck?
Yes, it seems unused for dynamic types.
committed.