diff --git a/mozilla/js/tests/lc3/forin/object-001.js b/mozilla/js/tests/lc3/forin/object-001.js index 78b9b2fc60f..feb3e209048 100644 --- a/mozilla/js/tests/lc3/forin/object-001.js +++ b/mozilla/js/tests/lc3/forin/object-001.js @@ -120,11 +120,7 @@ this.pCount = 0; for ( var p in o ) { this.pCount++; - if (!isNaN(p)) { - eval( "this["+p+"] = o["+p+"]" ); - } else { - eval( "this." + p + " = o."+ p ); - } + this[p] = o[p]; } }