mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibJS: Remove PropertyKey::is_valid() method
This method was being used to check for invalid `PropertyKey`s. Since invalid `PropertyKey`s are no longer created, and since the associated method has also been removed in the latest edition of ECMA-262, the method can now be removed here as well. While we are removing all its calls, lets also update any surrounding spec comments to the current latest edition, where possible.
This commit is contained in:
committed by
Andreas Kling
parent
bc05f6303f
commit
0080f399c7
@@ -281,8 +281,6 @@ ThrowCompletionOr<bool> Array::internal_define_own_property(PropertyKey const& p
|
||||
{
|
||||
auto& vm = this->vm();
|
||||
|
||||
VERIFY(property_key.is_valid());
|
||||
|
||||
// 1. If P is "length", then
|
||||
if (property_key.is_string() && property_key.as_string() == vm.names.length.as_string()) {
|
||||
// a. Return ? ArraySetLength(A, Desc).
|
||||
|
||||
Reference in New Issue
Block a user