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