mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
wallpaper for bug 473721
This commit is contained in:
parent
6d6645ee0b
commit
39eb159902
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user