зеркало из https://github.com/mozilla/gecko-dev.git
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.
This commit is contained in:
Родитель
e7b56436fc
Коммит
b684dbee7f
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче