| Index: src/builtins.cc
|
| diff --git a/src/builtins.cc b/src/builtins.cc
|
| index 7609de8aaffc160d37535d2ce5c8e59f556f5342..03305dd5c92bd3dab16804a0780bdb78b30cd54f 100644
|
| --- a/src/builtins.cc
|
| +++ b/src/builtins.cc
|
| @@ -2478,6 +2478,17 @@ void Builtins::Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler) {
|
| "[Generator].prototype.throw");
|
| }
|
|
|
| +void Builtins::Generate_AsyncFunctionNext(CodeStubAssembler* assembler) {
|
| + Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kNext,
|
| + "AsyncFunctionNext");
|
| +}
|
| +
|
| +// ES6 section 25.3.1.4 Generator.prototype.throw ( exception )
|
| +void Builtins::Generate_AsyncFunctionThrow(CodeStubAssembler* assembler) {
|
| + Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kThrow,
|
| + "AsyncFunctionThrow");
|
| +}
|
| +
|
| // -----------------------------------------------------------------------------
|
| // ES6 section 26.1 The Reflect Object
|
|
|
| @@ -4203,6 +4214,13 @@ BUILTIN(GeneratorFunctionConstructor) {
|
| return *result;
|
| }
|
|
|
| +BUILTIN(AsyncFunctionConstructor) {
|
| + HandleScope scope(isolate);
|
| + Handle<JSFunction> result;
|
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| + isolate, result, CreateDynamicFunction(isolate, args, "async function"));
|
| + return *result;
|
| +}
|
|
|
| // ES6 section 19.4.1.1 Symbol ( [ description ] ) for the [[Call]] case.
|
| BUILTIN(SymbolConstructor) {
|
|
|