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:
parent
7f46bf908d
commit
b6681f2948
2 changed files with 4 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue