diff --git a/site/source/docs/porting/connecting_cpp_and_javascript/embind.rst b/site/source/docs/porting/connecting_cpp_and_javascript/embind.rst index afa6302db..1a50a52c8 100644 --- a/site/source/docs/porting/connecting_cpp_and_javascript/embind.rst +++ b/site/source/docs/porting/connecting_cpp_and_javascript/embind.rst @@ -421,7 +421,7 @@ implemented in JavaScript. EMSCRIPTEN_BINDINGS(interface) { class_("Interface") .function("invoke", &Interface::invoke, pure_virtual()) - .allow_subclass() + .allow_subclass("InterfaceWrapper") ; } @@ -500,7 +500,7 @@ implementation: EMSCRIPTEN_BINDINGS(interface) { class_("Base") - .allow_subclass() + .allow_subclass("BaseWrapper") .function("invoke", optional_override([](Base& self, const std::string& str) { return self.Base::invoke(str); }))