mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
Fix bustage (forgot to check in these files for bug 337095)
This commit is contained in:
parent
454647771b
commit
db10e826e9
@ -1295,19 +1295,12 @@ JS_GetScriptTotalSize(JSContext *cx, JSScript *script)
|
|||||||
}
|
}
|
||||||
|
|
||||||
JS_PUBLIC_API(uint32)
|
JS_PUBLIC_API(uint32)
|
||||||
JS_GetTopScriptFilenameFlags(JSContext *cx, JSStackFrame *fp)
|
JS_GetScriptFilenameFlags(JSScript *script)
|
||||||
{
|
{
|
||||||
if (!fp)
|
JS_ASSERT(script);
|
||||||
fp = cx->fp;
|
if (!script->filename)
|
||||||
while (fp) {
|
return JSFILENAME_NULL;
|
||||||
if (fp->script) {
|
return js_GetScriptFilenameFlags(script->filename);
|
||||||
if (!fp->script->filename)
|
|
||||||
return JSFILENAME_NULL;
|
|
||||||
return js_GetScriptFilenameFlags(fp->script->filename);
|
|
||||||
}
|
|
||||||
fp = fp->down;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
JS_PUBLIC_API(JSBool)
|
JS_PUBLIC_API(JSBool)
|
||||||
|
@ -351,12 +351,11 @@ extern JS_PUBLIC_API(size_t)
|
|||||||
JS_GetScriptTotalSize(JSContext *cx, JSScript *script);
|
JS_GetScriptTotalSize(JSContext *cx, JSScript *script);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the top-most running script on cx starting from fp, or from the top of
|
* Get the filename flags for the script. If the script doesn't have a
|
||||||
* cx's frame stack if fp is null, and return its script filename flags. If
|
* filename, return JSFILENAME_NULL.
|
||||||
* the script has a null filename member, return JSFILENAME_NULL.
|
|
||||||
*/
|
*/
|
||||||
extern JS_PUBLIC_API(uint32)
|
extern JS_PUBLIC_API(uint32)
|
||||||
JS_GetTopScriptFilenameFlags(JSContext *cx, JSStackFrame *fp);
|
JS_GetScriptFilenameFlags(JSScript *script);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Associate flags with a script filename prefix in rt, so that any subsequent
|
* Associate flags with a script filename prefix in rt, so that any subsequent
|
||||||
|
Loading…
Reference in New Issue
Block a user