Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 20d00bb7e384f0cab49e766717f55d49c313d437..77d4b3a87ce68835eddc4bdc0a21eb90481ab5f8 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -4223,6 +4223,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) { |