Permalink
Browse files

don't always return a new handle for a constructor call. Reflect obje…

…ct in normal fashion.
  • Loading branch information...
1 parent f0ddef4 commit a3e9b1d0a43eb32595537571dec75f6c101b3240 @cowboyd cowboyd committed May 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/v8/v8_function.cpp
View
2 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;

0 comments on commit a3e9b1d

Please sign in to comment.