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

correctly convert keys to strings with Get()

This commit is contained in:
Charles Lowell 2010-05-17 15:28:59 +03:00
parent 39fc3faa6b
commit 4dfc037e6b

View file

@ -41,8 +41,8 @@ VALUE v8_Object_Get(VALUE self, VALUE key) {
HandleScope handles;
Local<Object> obj = unwrap(self);
VALUE keystr = rb_str_to_str(key);
Local<Value> value = obj->Get(RB2V8(keystr));
return V82RB(value);
Local<Value> value = obj->Get(rr_rb2v8(keystr));
return rr_v82rb(value);
}
VALUE v8_Object_Set(VALUE self, VALUE key, VALUE value) {