fix spidermonkey issue

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7007 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-12-28 22:04:56 +00:00
parent 04e33f191a
commit ef563f04c4
2 changed files with 2 additions and 2 deletions

View File

@ -425,6 +425,7 @@ InitExceptionObject(JSContext *cx, JSObject *obj, JSString *message,
APPEND_CHAR_TO_STACK('(');
for (i = 0; i < fp->argc; i++) {
/* Avoid toSource bloat and fallibility for object types. */
v = fp->argv[i];
if (JSVAL_IS_PRIMITIVE(v)) {

View File

@ -1120,13 +1120,12 @@ static switch_status_t js_common_callback(switch_core_session_t *session, void *
jss->stack_depth++;
if (cb_state->jss_a && cb_state->jss_a->session && cb_state->jss_a->session == session) {
argv[argc++] = OBJECT_TO_JSVAL(cb_state->session_obj_a);
} else if (cb_state->jss_b && cb_state->jss_b->session && cb_state->jss_b->session == session) {
argv[argc++] = OBJECT_TO_JSVAL(cb_state->session_obj_b);
} else {
argv[argc++] = OBJECT_TO_JSVAL(cb_state->session_state);
argv[argc++] = OBJECT_TO_JSVAL(cb_state->session_state->obj);
}
switch (itype) {