Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 9097039b4c5762dde28bab7106996cb2fca38b2c..9ded31ebc0634fde0bc705955df38d7c96614ac9 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -1074,6 +1074,12 @@ void FastReturnValueCallback<void>( |
} |
} |
+template<> |
+void FastReturnValueCallback<Object>( |
+ const v8::FunctionCallbackInfo<v8::Value>& info) { |
+ info.GetReturnValue().Set(Object::New()); |
+} |
+ |
template<typename T> |
Handle<Value> TestFastReturnValues() { |
LocalContext env; |
@@ -1118,6 +1124,8 @@ THREADED_TEST(FastReturnValues) { |
CHECK(value->IsUndefined()); |
} |
} |
+ value = TestFastReturnValues<Object>(); |
+ CHECK(value->IsObject()); |
} |