Backed out changeset 919950c7f0f0
This commit is contained in:
@@ -970,7 +970,7 @@ js_alloc_temp_space(void *priv, size_t size)
|
||||
}
|
||||
}
|
||||
|
||||
parser->context->tempPool.allocate(space, size);
|
||||
JS_ARENA_ALLOCATE(space, &parser->context->tempPool, size);
|
||||
if (!space)
|
||||
js_ReportOutOfScriptQuota(parser->context);
|
||||
return space;
|
||||
@@ -1002,7 +1002,7 @@ js_alloc_temp_entry(void *priv, const void *key)
|
||||
return &ale->entry;
|
||||
}
|
||||
|
||||
parser->context->tempPool.allocateType<JSAtomListElement>(ale);
|
||||
JS_ARENA_ALLOCATE_TYPE(ale, JSAtomListElement, &parser->context->tempPool);
|
||||
if (!ale) {
|
||||
js_ReportOutOfScriptQuota(parser->context);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user