summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime')
-rw-r--r--Libraries/LibJS/Runtime/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/Value.cpp b/Libraries/LibJS/Runtime/Value.cpp
index b2eab819e2..e823cb5409 100644
--- a/Libraries/LibJS/Runtime/Value.cpp
+++ b/Libraries/LibJS/Runtime/Value.cpp
@@ -539,7 +539,7 @@ Value in(Interpreter& interpreter, Value lhs, Value rhs)
auto lhs_string = lhs.to_string(interpreter);
if (interpreter.exception())
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)