Permalink
Browse files

fix for old v8

  • Loading branch information...
1 parent fd227ee commit a3b1e2c3f03e548ede6f7d6904dc09b705898384 @pmurias committed Nov 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 V8Context.cpp
View
@@ -334,7 +334,7 @@ V8Context::av2array(AV *av) {
I32 i, len = av_len(av) + 1;
Handle<Array> array = Array::New(len);
for (i = 0; i < len; i++) {
- array->Set(i, sv2v8(*av_fetch(av, i, 0)));
+ array->Set(Integer::New(i), sv2v8(*av_fetch(av, i, 0)));
}
return array;
}

0 comments on commit a3b1e2c

Please sign in to comment.