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

C::String is a C::Value

This commit is contained in:
Charles Lowell 2010-05-31 10:06:29 +03:00
parent 19211179ef
commit 6cf93bf1c3

View file

@ -2,6 +2,7 @@
#include "v8_str.h"
#include "v8.h"
#include "v8_ref.h"
#include "v8_value.h"
using namespace v8;
@ -37,7 +38,7 @@ VALUE rr_reflect_v8_string(Handle<Value> value) {
}
void rr_init_str() {
StringClass = rr_define_class("String");
StringClass = rr_define_class("String", rr_cV8_C_Value);
rr_define_singleton_method(StringClass, "New", New, 1);
rr_define_method(StringClass, "Utf8Value", Utf8Value, 0);
rr_define_method(StringClass, "Utf16Value", Utf16Value, 0);