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

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

Issue 1604: Fix issue http://code.google.com/p/v8/issues/detail?id=32... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 3 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: test/cctest/test-api.cc
===================================================================
--- test/cctest/test-api.cc (revision 184)
+++ test/cctest/test-api.cc (working copy)
@@ -3959,6 +3959,11 @@
CHECK(!try_catch.HasCaught());
CHECK_EQ(49, value->Int32Value());
+ // test special case of call as function
+ value = Script::Compile(v8_str("[obj]['0'](45)"))->Run();
+ CHECK(!try_catch.HasCaught());
+ CHECK_EQ(45, value->Int32Value());
+
value = Script::Compile(v8_str("obj.call = Function.prototype.call;"
"obj.call(null, 87)"))->Run();
CHECK(!try_catch.HasCaught());

Powered by Google App Engine
This is Rietveld 408576698