1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

don't always return a new handle for a constructor call. Reflect object in normal fashion.

This commit is contained in:
Charles Lowell 2011-05-02 17:44:32 -05:00
parent f0ddef4412
commit a3e9b1d0a4

View file

@ -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;