Implement support for js_class
on exported types
#1012
Merged
js_class
on exported types
#1012