mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
use object reflection semantics for v8::Date
This commit is contained in:
parent
dd7f1ffd21
commit
d4c7cca6fc
1 changed files with 2 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "v8_date.h"
|
||||
#include "v8_value.h"
|
||||
#include "v8_handle.h"
|
||||
#include "v8_object.h"
|
||||
|
||||
using namespace v8;
|
||||
|
||||
|
@ -29,7 +30,5 @@ void rr_init_v8_date() {
|
|||
}
|
||||
|
||||
VALUE rr_reflect_v8_date(Handle<Value> value) {
|
||||
HandleScope hs;
|
||||
Local<Date> date(Date::Cast(*value));
|
||||
return rr_v8_handle_new(DateClass, date);
|
||||
return rr_reflect_v8_object_as(Handle<Object>::Cast(value), DateClass);
|
||||
}
|
Loading…
Add table
Reference in a new issue