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

Unified Diff: src/v8natives.js

Issue 160073006: Implement handling of arrow functions in the parser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased after latest changes in runtime.{h,cc} Created 6 years, 8 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 f183afb968f84df9b11c5438f2cfadc64d20068d..c603bbb1c3b67c35c1d27c385f505cb6a9410aba 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1759,6 +1759,9 @@ function FunctionSourceString(func) {
}
}
+ if (%FunctionIsArrow(func))
+ return source;
+
var name = %FunctionNameShouldPrintAsAnonymous(func)
? 'anonymous'
: %FunctionGetName(func);

Powered by Google App Engine
This is Rietveld 408576698