Bug 247445 Useless/unreachable stale code from 1999 in GlobalWindowImpl::SetTimeoutOrInterval

r=brendan sr=brendan
This commit is contained in:
timeless%mozdev.org 2004-06-22 09:44:17 +00:00
parent f641551bbe
commit e3557506eb

View File

@ -4769,8 +4769,7 @@ GlobalWindowImpl::SetTimeoutOrInterval(PRBool aIsInterval, PRInt32 *aReturn)
case JSTYPE_STRING:
case JSTYPE_OBJECT:
if (!(expr = ::JS_ValueToString(cx, argv[0])))
return NS_ERROR_FAILURE;
expr = ::JS_ValueToString(cx, argv[0]);
if (!expr)
return NS_ERROR_OUT_OF_MEMORY;
argv[0] = STRING_TO_JSVAL(expr);