mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 00:07:34 +00:00
LibJS: Value.in uses has_property instead of get().is_empty()
This commit is contained in:
parent
24430b3860
commit
58a72e9b81
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ Value in(Interpreter& interpreter, Value lhs, Value rhs)
|
||||||
auto lhs_string = lhs.to_string(interpreter);
|
auto lhs_string = lhs.to_string(interpreter);
|
||||||
if (interpreter.exception())
|
if (interpreter.exception())
|
||||||
return {};
|
return {};
|
||||||
return Value(!rhs.as_object().get(lhs_string).is_empty());
|
return Value(rhs.as_object().has_property(lhs_string));
|
||||||
}
|
}
|
||||||
|
|
||||||
Value instance_of(Interpreter&, Value lhs, Value rhs)
|
Value instance_of(Interpreter&, Value lhs, Value rhs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue