зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1415486 - Nursery allocate async functions. r=arai
This commit is contained in:
Родитель
6d8f9c1263
Коммит
dcc4df0d8e
|
@ -135,8 +135,7 @@ js::WrapAsyncFunctionWithProto(JSContext* cx, HandleFunction unwrapped, HandleOb
|
|||
RootedFunction wrapped(cx, NewFunctionWithProto(cx, WrappedAsyncFunction, length,
|
||||
JSFunction::NATIVE_FUN, nullptr,
|
||||
funName, proto,
|
||||
AllocKind::FUNCTION_EXTENDED,
|
||||
TenuredObject));
|
||||
AllocKind::FUNCTION_EXTENDED));
|
||||
if (!wrapped)
|
||||
return nullptr;
|
||||
|
||||
|
|
|
@ -80,8 +80,7 @@ js::WrapAsyncGeneratorWithProto(JSContext* cx, HandleFunction unwrapped, HandleO
|
|||
RootedFunction wrapped(cx, NewFunctionWithProto(cx, WrappedAsyncGenerator, length,
|
||||
JSFunction::NATIVE_FUN, nullptr,
|
||||
funName, proto,
|
||||
AllocKind::FUNCTION_EXTENDED,
|
||||
TenuredObject));
|
||||
AllocKind::FUNCTION_EXTENDED));
|
||||
if (!wrapped)
|
||||
return nullptr;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче