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

View File

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