Skip to content

Commit

Permalink
Implement suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Halid Odat <halidodat@gmail.com>
  • Loading branch information
tofpie and HalidOdat authored Jan 2, 2021
1 parent 06499f7 commit f0eb2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/src/syntax/ast/node/operator/unary_op/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Executable for UnaryOp {
let field = &get_field.field().run(context)?;
let res = obj
.to_object(context)?
.delete(&field.to_string(context)?.as_str().into());
.delete(&field.to_property_key(context)?);
return Ok(Value::boolean(res));
}
Node::Identifier(_) => Value::boolean(false),
Expand Down

0 comments on commit f0eb2e6

Please sign in to comment.