Index: src/js/v8natives.js |
diff --git a/src/js/v8natives.js b/src/js/v8natives.js |
index 7c2ea48aae07b5d9832e16d2cddb270433443ee4..43f2be8113615e41c310838c406b829e2f066fe8 100644 |
--- a/src/js/v8natives.js |
+++ b/src/js/v8natives.js |
@@ -1683,10 +1683,11 @@ function FunctionSourceString(func) { |
: %FunctionGetName(func); |
var isGenerator = %FunctionIsGenerator(func); |
+ var isAsync = %FunctionIsAsync(func); |
var head = %FunctionIsConciseMethod(func) |
? (isGenerator ? '*' : '') |
: (isGenerator ? 'function* ' : 'function '); |
- return head + name + source; |
+ return (isAsync ? 'async ' : '') + head + name + source; |
} |