staticvoidDispose();/* Deinitialize the V8 engine */
staticvoidInclude(constv8::FunctionCallbackInfo<v8::Value>&args);/* Adds functionality to include another JavaScript from the running script */
staticvoidVersion(constv8::FunctionCallbackInfo<v8::Value>&args);/* Internal Version function accessable from JS - used to get the current V( version */
staticconststd::stringGetExceptionInfo(v8::Isolate*isolate,v8::TryCatch*try_catch);/* Get the exception information from a V8 TryCatch instance */
conststd::vector<constjs_class_definition_t*>&GetExtenderClasses()const;/* Returns the list of class definitions */
switch_log_printf(SWITCH_CHANNEL_ID_LOG,js->GetForcedTerminationScriptFile(),modname,js->GetForcedTerminationLineNumber(),NULL,SWITCH_LOG_NOTICE,"Script exited with info [%s]\n",js->GetForcedTerminationMessage());
SWITCH_ADD_API(jsrun_interface,"jskill","kill a task",kill_function,"jskill <task_id>");
SWITCH_ADD_APP(app_interface,"javascript","Launch JS ivr","Run a javascript ivr on a channel",v8_dp_function,"<script> [additional_vars [...]]",SAF_SUPPORT_NOMEDIA);
SWITCH_ADD_CHAT_APP(chat_app_interface,"javascript","execute a js script","execute a js script",v8_chat_function,"<script>",SCAF_NONE);