From a3e9b1d0a43eb32595537571dec75f6c101b3240 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Mon, 2 May 2011 17:44:32 -0500 Subject: [PATCH] don't always return a new handle for a constructor call. Reflect object in normal fashion. --- ext/v8/v8_function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/v8/v8_function.cpp b/ext/v8/v8_function.cpp index a4305f1..dde83a5 100644 --- a/ext/v8/v8_function.cpp +++ b/ext/v8/v8_function.cpp @@ -37,7 +37,7 @@ namespace { for (int i = 0; i < argc; i++) { argv[i] = args->Get(i); } - return rr_v8_handle_new(rr_v8_object_class(), function->NewInstance(argc, argv)); + return rr_v82rb(function->NewInstance(argc, argv)); } VALUE GetName(VALUE self) { HandleScope scope;