How to call cocos2d C++ method from javascript?

Clash Royale CLAN TAG#URR8PPPHow to call cocos2d C++ method from javascript?
How can I call the C++ method cocos2d::utils::captureScreen from javascript when using cocos2d's javascript library?
cocos2d::utils::captureScreen
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.