check for undefined in putProperty.

This commit is contained in:
hns 2001-08-30 17:56:40 +00:00
parent e7f91063fb
commit e787abefe7

View file

@ -249,7 +249,7 @@ public class ESNode extends ObjectPrototype {
return;
}
if (propertyValue instanceof ESNull)
if (propertyValue instanceof ESNull || propertyValue instanceof ESUndefined)
node.unset (propertyName);
else if (propertyValue instanceof ESString)
node.setString (propertyName, propertyValue.toString ());