зеркало из https://github.com/mozilla/pjs.git
bug 124474, "JS_IsNativeFrame should return !fp->script"
also includes typo fix from bug 124474 sr=shaver, r=jband
This commit is contained in:
Родитель
737c470ed0
Коммит
6564fd58e3
|
@ -612,7 +612,7 @@ JS_GetFramePrincipalArray(JSContext *cx, JSStackFrame *fp)
|
|||
JS_PUBLIC_API(JSBool)
|
||||
JS_IsNativeFrame(JSContext *cx, JSStackFrame *fp)
|
||||
{
|
||||
return fp->fun && fp->fun->native;
|
||||
return !fp->script;
|
||||
}
|
||||
|
||||
/* this is deprecated, use JS_GetFrameScopeChain instead */
|
||||
|
@ -670,7 +670,7 @@ JS_GetFrameFunctionObject(JSContext *cx, JSStackFrame *fp)
|
|||
}
|
||||
|
||||
JS_PUBLIC_API(JSBool)
|
||||
JS_IsContructorFrame(JSContext *cx, JSStackFrame *fp)
|
||||
JS_IsConstructorFrame(JSContext *cx, JSStackFrame *fp)
|
||||
{
|
||||
return (fp->flags & JSFRAME_CONSTRUCTING) != 0;
|
||||
}
|
||||
|
|
|
@ -161,8 +161,10 @@ JS_GetFrameFunction(JSContext *cx, JSStackFrame *fp);
|
|||
extern JS_PUBLIC_API(JSObject *)
|
||||
JS_GetFrameFunctionObject(JSContext *cx, JSStackFrame *fp);
|
||||
|
||||
/* XXXrginda Initially published with typo */
|
||||
#define JS_IsContructorFrame JS_IsConstructorFrame
|
||||
extern JS_PUBLIC_API(JSBool)
|
||||
JS_IsContructorFrame(JSContext *cx, JSStackFrame *fp);
|
||||
JS_IsConstructorFrame(JSContext *cx, JSStackFrame *fp);
|
||||
|
||||
extern JS_PUBLIC_API(JSBool)
|
||||
JS_IsDebuggerFrame(JSContext *cx, JSStackFrame *fp);
|
||||
|
|
Загрузка…
Ссылка в новой задаче