wallpaper for bug 473721

This commit is contained in:
Robert Sayre 2009-01-15 03:38:09 -05:00
parent 6d6645ee0b
commit 39eb159902

View File

@ -5269,7 +5269,13 @@ JS_SetOperationLimit(JSContext *cx, uint32 operationLimit)
{
/* Mixed operation and branch callbacks are not supported. */
JS_ASSERT(!cx->branchCallbackWasSet);
JS_ASSERT(operationLimit <= JS_MAX_OPERATION_LIMIT);
// FIXME: bug 473721 wallpaper
// JS_ASSERT(operationLimit <= JS_MAX_OPERATION_LIMIT);
if (!(operationLimit <= JS_MAX_OPERATION_LIMIT)) {
operationLimit = JS_MAX_OPERATION_LIMIT;
}
JS_ASSERT(operationLimit > 0);
cx->operationCount = (int32) operationLimit;