* Avoid "Error unsetting property JavaPackage on Global" message on code updates.

This commit is contained in:
hns 2006-10-17 12:02:45 +00:00
parent cbcc04c1fb
commit cff3a556ee

View file

@ -927,7 +927,8 @@ public final class RhinoCore implements ScopeProvider {
Iterator it = compiledProperties.iterator();
while (it.hasNext()) {
String key = (String) it.next();
if (isGlobal && prototypes.containsKey(key.toLowerCase())) {
if (isGlobal && (prototypes.containsKey(key.toLowerCase())
|| "JavaPackage".equals(key))) {
// avoid removing HopObject constructor
predefinedProperties.add(key);
continue;