From e910eaed026a79b5e1cd669c1df990701bf59ee1 Mon Sep 17 00:00:00 2001 From: "norris%netscape.com" Date: Thu, 6 Jan 2000 22:54:15 +0000 Subject: [PATCH] Test didn't work with the Rhino feature of reflecting bean properties as JavaScript propertes: getClass() becomes a "class" property, and eval'ing a property name of "class" causes a syntax error. git-svn-id: svn://10.0.0.236/trunk@57026 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/tests/lc3/forin/object-001.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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]; } }