Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Unified Diff: src/v8natives.js

Issue 382893003: Implement basic code generation for arrow functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 5ffff2ecacd9f789d475595aa506c3093d20bfe4..5d1b462ce03164ccf29d41786111786863d1b20d 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1733,6 +1733,9 @@ function FunctionSourceString(func) {
}
}
+ if (%FunctionIsArrow(func))
+ return source;
rossberg 2014/07/14 13:55:46 Nit: please use same brace style as surrounding co
+
var name = %FunctionNameShouldPrintAsAnonymous(func)
? 'anonymous'
: %FunctionGetName(func);

Powered by Google App Engine
This is Rietveld 408576698