mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
NPOTB: fix #ifdef NARCISSUS code.
This commit is contained in:
parent
693b5f56ed
commit
e3de42125e
@ -6073,11 +6073,13 @@ js_TypeOf(JSContext *cx, JSObject *obj)
|
||||
|
||||
#ifdef NARCISSUS
|
||||
JSAutoResolveFlags rf(cx, JSRESOLVE_QUALIFIED);
|
||||
jsval v;
|
||||
|
||||
if (!obj->getProperty(cx, ATOM_TO_JSID(cx->runtime->atomState.__call__Atom), &v)) {
|
||||
JS_ClearPendingException(cx);
|
||||
} else if (VALUE_IS_FUNCTION(cx, v)) {
|
||||
return JSTYPE_FUNCTION;
|
||||
} else {
|
||||
if (VALUE_IS_FUNCTION(cx, v))
|
||||
return JSTYPE_FUNCTION;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user