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

Unified Diff: test/mjsunit/function-names.js

Issue 23190013: Give bound function name for aesthetic matters (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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
« no previous file with comments | « src/v8natives.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/function-names.js
diff --git a/test/mjsunit/function-names.js b/test/mjsunit/function-names.js
index 5ed0b794e8f988216a817345a2c247733c513e7d..fbc27f4de914d55de264af3259c93648df94001b 100644
--- a/test/mjsunit/function-names.js
+++ b/test/mjsunit/function-names.js
@@ -131,3 +131,10 @@ var globalFunctions = [
"eval"];
TestFunctionNames(this, globalFunctions);
+
+// Bound function.
+var boundFunction = (function Some(){}).bind(this);
+print(boundFunction.name);
+print(boundFunction);
Yang 2013/08/19 17:04:05 Those two print statements are unnecessary.
+assertTrue(boundFunction.name.indexOf("bound") != -1);
Yang 2013/08/19 17:04:05 This fails, since the name is "BoundFunction" (upp
+
« no previous file with comments | « src/v8natives.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698