better the other way
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10473 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9b98c2d512
commit
9de7588924
|
@ -3508,7 +3508,7 @@ static void js_parse_and_execute(switch_core_session_t *session, const char *inp
|
|||
|
||||
/* Emaculent conception of session object into the script if one is available */
|
||||
if (!(session && new_js_session(cx, javascript_global_object, session, &jss, "session", flags))) {
|
||||
switch_snprintf(buf, sizeof(buf), "~var session = new Object();");
|
||||
switch_snprintf(buf, sizeof(buf), "~var session = false;");
|
||||
eval_some_js(buf, cx, javascript_global_object, &rval);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue