зеркало из https://github.com/mozilla/pjs.git
warnings on Linux
This commit is contained in:
Родитель
d3a405ae82
Коммит
e57aaf2941
|
@ -454,7 +454,7 @@ JSValue Context::interpret(ICodeModule* iCode, const JSValues& args)
|
|||
break;
|
||||
case WITHOUT:
|
||||
{
|
||||
Without* without = static_cast<Without*>(instruction);
|
||||
// Without* without = static_cast<Without*>(instruction);
|
||||
mGlobal = mGlobal->getParent();
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -51,6 +51,8 @@ int JSValue::operator==(const JSValue& value) const
|
|||
CASE(i64); CASE(u64); CASE(f64);
|
||||
CASE(object); CASE(array); CASE(function);
|
||||
#undef CASE
|
||||
// question: are all undefined values equal to one another?
|
||||
case undefined_tag: return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -454,7 +454,7 @@ JSValue Context::interpret(ICodeModule* iCode, const JSValues& args)
|
|||
break;
|
||||
case WITHOUT:
|
||||
{
|
||||
Without* without = static_cast<Without*>(instruction);
|
||||
// Without* without = static_cast<Without*>(instruction);
|
||||
mGlobal = mGlobal->getParent();
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -51,6 +51,8 @@ int JSValue::operator==(const JSValue& value) const
|
|||
CASE(i64); CASE(u64); CASE(f64);
|
||||
CASE(object); CASE(array); CASE(function);
|
||||
#undef CASE
|
||||
// question: are all undefined values equal to one another?
|
||||
case undefined_tag: return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче