Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 405e7d6790932b66b473ff83478f504363ca7894..8614dc8aedbe5e368d5a285e8b1f7404ede2dadc 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1758,11 +1758,10 @@ function FunctionSourceString(func) { |
? 'anonymous' |
: %FunctionGetName(func); |
- // TODO(arv): Handle concise generator methods. |
- |
+ var isGenerator = %FunctionIsGenerator(func); |
var head = %FunctionIsConciseMethod(func) |
- ? '' |
- : %FunctionIsGenerator(func) ? 'function* ' : 'function '; |
+ ? (isGenerator ? '*' : '') |
+ : (isGenerator ? 'function* ' : 'function '); |
return head + name + source; |
} |