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

move function reflection into v8_function.cpp

This commit is contained in:
Charles Lowell 2010-05-13 17:10:48 -05:00
parent 7f46bf908d
commit b6681f2948
2 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,6 @@
#include "rr.h"
#include "v8_value.h"
#include "v8_func.h"
#include "v8_str.h"
using namespace v8;
@ -24,7 +25,6 @@ VALUE rr_str_to_camel_case(VALUE str) {
VALUE rr_reflect_v8_array(Handle<Value> value);
VALUE rr_reflect_v8_object(Handle<Value> value);
VALUE rr_reflect_v8_function(Handle<Value> value);
VALUE rr_v82rb(Handle<Value> value) {
if (value->IsUndefined() || value->IsNull()) {

View file

@ -61,6 +61,7 @@ void rr_init_func() {
// rr_define_method(FunctionClass, "GetScriptOrigin", GetScriptOrigin, 0);
}
void rr_reflec_v8_function(Handle<Value> value) {
VALUE rr_reflect_v8_function(Handle<Value> value) {
Local<Function> f = Function::Cast(*value);
return V8_Ref_Create(FunctionClass, f);
}