I have a JavaScript class, that I don’t want to port to C++ as it is too huge and complicated. Is Is there any way in which I could call JavaScript functions from inside my C++ code.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unless you have a very specific requirement that forces you to do this, this would be a very bad idea. It’ll have a terrible overhead (in terms of execution speed and memory usage). You should seriously consider porting your Javascript code to C++.