mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:17:44 +00:00
LibJS: Rename same_value_non_{numeric => number}() and handle BigInts
This is an editorial change in the ECMA-262 spec. See:f660b14
Note that the explicit check for zero sign equality is no longer needed as ofb0d6399
, which removed the ability of Crypto::SignedBigInteger to represent negative zero.
This commit is contained in:
parent
78895984e9
commit
ff5882291f
2 changed files with 14 additions and 26 deletions
|
@ -498,7 +498,7 @@ private:
|
|||
friend ThrowCompletionOr<Value> less_than(VM&, Value lhs, Value rhs);
|
||||
friend ThrowCompletionOr<Value> less_than_equals(VM&, Value lhs, Value rhs);
|
||||
friend ThrowCompletionOr<Value> add(VM&, Value lhs, Value rhs);
|
||||
friend bool same_value_non_numeric(Value lhs, Value rhs);
|
||||
friend bool same_value_non_number(Value lhs, Value rhs);
|
||||
};
|
||||
|
||||
inline Value js_undefined()
|
||||
|
@ -559,7 +559,7 @@ ThrowCompletionOr<bool> is_loosely_equal(VM&, Value lhs, Value rhs);
|
|||
bool is_strictly_equal(Value lhs, Value rhs);
|
||||
bool same_value(Value lhs, Value rhs);
|
||||
bool same_value_zero(Value lhs, Value rhs);
|
||||
bool same_value_non_numeric(Value lhs, Value rhs);
|
||||
bool same_value_non_number(Value lhs, Value rhs);
|
||||
ThrowCompletionOr<TriState> is_less_than(VM&, Value lhs, Value rhs, bool left_first);
|
||||
|
||||
double to_integer_or_infinity(double);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue