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:
Anthony Minessale 2008-11-20 03:56:27 +00:00
parent 9b98c2d512
commit 9de7588924
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}