Permalink
Browse files

Merge pull request #147 from mbebenita/master

Bug fixes.
  • Loading branch information...
2 parents 293172c + 1f34fe2 commit debe4a8bbea95ae380feeb6f8aa2a662cb312a71 @mbebenita mbebenita committed Mar 12, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/avm2/runtime.js
View
@@ -72,9 +72,10 @@ function initializeGlobalObject(global) {
function getEnumerationKeys(obj) {
var keys = [];
+ // TODO: Implement fast path for Array objects.
for (var key in obj) {
if (isNumeric(key)) {
- keys.push(key);
+ keys.push(Number(key));
} else if (PUBLIC_MANGLED.test(key)) {
if (obj[VM_BINDINGS] && obj[VM_BINDINGS].indexOf(key) >= 0) {
continue;

0 comments on commit debe4a8

Please sign in to comment.