Fix bustage (forgot to check in these files for bug 337095)

This commit is contained in:
gavin%gavinsharp.com 2006-06-15 04:17:43 +00:00
parent 454647771b
commit db10e826e9
2 changed files with 8 additions and 16 deletions

View File

@ -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)

View File

@ -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