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

pass index, not random bullshit, to indexed getter

This commit is contained in:
Charles Lowell 2012-06-12 04:17:43 -05:00
parent 476367a133
commit 255d07368c

View file

@ -152,7 +152,7 @@ namespace rr {
v8::Handle<v8::Value> Accessor::Info::get(uint32_t index) {
Accessor accessor(info->Data());
return Value(rb_funcall(accessor.get, rb_intern("call"), 2, (VALUE)String(index), (VALUE)*this));
return Value(rb_funcall(accessor.get, rb_intern("call"), 2, UINT2NUM(index), (VALUE)*this));
}
v8::Handle<v8::Value> Accessor::Info::set(uint32_t index, v8::Local<v8::Value> value) {