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:
parent
476367a133
commit
255d07368c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue