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

remove call to rb_hash_lookup() which is not present in 1.8.6

This commit is contained in:
Charles Lowell 2010-05-27 22:01:27 +03:00
parent 00dad84dcf
commit ef48cea359

View file

@ -13,7 +13,7 @@ using namespace v8;
namespace {
VALUE rb_hash_lookup(VALUE hash, const char *key) {
return ::rb_hash_lookup(hash, rb_str_new2(key));
return rb_funcall(hash, rb_intern("[]"), 1, rb_str_new2(key));
}
VALUE rb_hash_aset(VALUE hash, const char *key, VALUE value) {