check for undefined in putProperty.
This commit is contained in:
parent
e7f91063fb
commit
e787abefe7
1 changed files with 1 additions and 1 deletions
|
@ -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 ());
|
||||
|
|
Loading…
Add table
Reference in a new issue