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

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: Extra parens in parameter lists now recognized, no longer segfaults on "()" Created 6 years, 7 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 602d75b5b9ffadb5b395f06e3339d5bb7d76b456..264ad94aadbadcf7ecfa6a9996cb1cc4cf885f34 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1735,6 +1735,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