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_GetTopScriptFilenameFlags(JSContext *cx, JSStackFrame *fp)
|
||||
JS_GetScriptFilenameFlags(JSScript *script)
|
||||
{
|
||||
if (!fp)
|
||||
fp = cx->fp;
|
||||
while (fp) {
|
||||
if (fp->script) {
|
||||
if (!fp->script->filename)
|
||||
return JSFILENAME_NULL;
|
||||
return js_GetScriptFilenameFlags(fp->script->filename);
|
||||
}
|
||||
fp = fp->down;
|
||||
}
|
||||
return 0;
|
||||
JS_ASSERT(script);
|
||||
if (!script->filename)
|
||||
return JSFILENAME_NULL;
|
||||
return js_GetScriptFilenameFlags(script->filename);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JSBool)
|
||||
|
@ -351,12 +351,11 @@ extern JS_PUBLIC_API(size_t)
|
||||
JS_GetScriptTotalSize(JSContext *cx, JSScript *script);
|
||||
|
||||
/*
|
||||
* Get the top-most running script on cx starting from fp, or from the top of
|
||||
* cx's frame stack if fp is null, and return its script filename flags. If
|
||||
* the script has a null filename member, return JSFILENAME_NULL.
|
||||
* Get the filename flags for the script. If the script doesn't have a
|
||||
* filename, return JSFILENAME_NULL.
|
||||
*/
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user