Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 28a9be159937b9f1399efa6f7de5e9734751ba55..7167bba63a103e3ea209a7a8b61b3745baf7bbfa 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -7006,6 +7006,13 @@ THREADED_TEST(CallAsFunction) { |
value = CompileRun("new obj(43)"); |
CHECK(!try_catch.HasCaught()); |
CHECK_EQ(-43, value->Int32Value()); |
+ |
+ // Check that the call-as-function handler can be called through |
Mads Ager (chromium)
2011/04/28 11:53:05
This needs more testing. Please add tests for call
|
+ // the API. |
+ v8::Handle<Value> args1[] = { v8_num(28) }; |
+ value = instance->Call(instance, 1, args1); |
+ CHECK(!try_catch.HasCaught()); |
+ CHECK_EQ(28, value->Int32Value()); |
} |