* Avoid "Error unsetting property JavaPackage on Global" message on code updates.
This commit is contained in:
		
							parent
							
								
									cbcc04c1fb
								
							
						
					
					
						commit
						cff3a556ee
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue