Fix gcc 2.7.2.3 bustage (conditional with enumerated values from different anonymous enums). r=jband

This commit is contained in:
dbaron%fas.harvard.edu 2001-05-08 19:11:51 +00:00
parent 35447f5647
commit 7241928fef

View File

@ -143,9 +143,10 @@ XPCJSStackFrame::CreateStack(JSContext* cx, JSStackFrame* fp,
if(!failed)
{
self->mLanguage = JS_IsNativeFrame(cx, fp) ?
nsIProgrammingLanguage::CPLUSPLUS :
nsIProgrammingLanguage::JAVASCRIPT;
if (JS_IsNativeFrame(cx, fp))
self->mLanguage = nsIProgrammingLanguage::CPLUSPLUS;
else
self->mLanguage = nsIProgrammingLanguage::JAVASCRIPT;
if(self->IsJSFrame())
{
JSScript* script = JS_GetFrameScript(cx, fp);