From 4dfc037e6be30b9dff067c1409558d17e742e431 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Mon, 17 May 2010 15:28:59 +0300 Subject: [PATCH] correctly convert keys to strings with Get() --- ext/v8/v8_obj.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/v8/v8_obj.cpp b/ext/v8/v8_obj.cpp index a0005d9..d2b69eb 100644 --- a/ext/v8/v8_obj.cpp +++ b/ext/v8/v8_obj.cpp @@ -41,8 +41,8 @@ VALUE v8_Object_Get(VALUE self, VALUE key) { HandleScope handles; Local obj = unwrap(self); VALUE keystr = rb_str_to_str(key); - Local value = obj->Get(RB2V8(keystr)); - return V82RB(value); + Local value = obj->Get(rr_rb2v8(keystr)); + return rr_v82rb(value); } VALUE v8_Object_Set(VALUE self, VALUE key, VALUE value) {