fix MODLANG-42
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6035 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7056f21fec
commit
8cf22e707d
|
@ -2908,7 +2908,7 @@ static JSBool js_include(JSContext * cx, JSObject * obj, uintN argc, jsval * arg
|
|||
{
|
||||
char *code;
|
||||
if (argc > 0 && (code = JS_GetStringBytes(JS_ValueToString(cx, argv[0])))) {
|
||||
if (eval_some_js(code, cx, obj, rval) < 0) {
|
||||
if (eval_some_js(code, cx, obj, rval) <= 0) {
|
||||
return JS_FALSE;
|
||||
}
|
||||
return JS_TRUE;
|
||||
|
|
Loading…
Reference in New Issue