mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibJS: Implement Object.is()
Basically === with two particularities: comparing NaN to itself is considered equal and comparing +0 and -0 is not.
This commit is contained in:
committed by
Andreas Kling
parent
f191b84b50
commit
38ba13e912
Notes:
sideshowbarker
2024-07-19 07:17:14 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/38ba13e912b Pull-request: https://github.com/SerenityOS/serenity/pull/1959 Reviewed-by: https://github.com/awesomekling
@@ -43,6 +43,7 @@ private:
|
||||
virtual const char* class_name() const override { return "ObjectConstructor"; }
|
||||
|
||||
static Value define_property(Interpreter&);
|
||||
static Value is(Interpreter&);
|
||||
static Value get_own_property_descriptor(Interpreter&);
|
||||
static Value get_own_property_names(Interpreter&);
|
||||
static Value get_prototype_of(Interpreter&);
|
||||
|
||||
Reference in New Issue
Block a user