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

Unified Diff: test/cctest/test-api.cc

Issue 377213002: Add FunctionTemplate::GetClassName to API. (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
« src/api.cc ('K') | « src/api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 0ddf5ba7651470ae1cb6ec6ed9fd0fa04f6b2ba1..371b1b7255252d2ca9e6d6f4088e805d07ac70bc 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -13070,6 +13070,8 @@ THREADED_TEST(ObjectProtoToString) {
LocalContext context;
+ CHECK_EQ(v8_str("MyClass"), templ->GetClassName());
+
Local<String> customized_tostring = v8_str("customized toString");
// Replace Object.prototype.toString
« src/api.cc ('K') | « src/api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698