mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibJS: Implement RegExp.prototype.toString() as standalone function
This should not just inherit Object.prototype.toString() (and override Object::to_string()) but be its own function, i.e. 'RegExp.prototype.toString !== Object.prototype.toString'.
This commit is contained in:
committed by
Andreas Kling
parent
41837f548d
commit
e163db248d
Notes:
sideshowbarker
2024-07-19 01:33:58 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/e163db248de Pull-request: https://github.com/SerenityOS/serenity/pull/3938 Reviewed-by: https://github.com/awesomekling
@@ -43,8 +43,6 @@ public:
|
||||
const String& content() const { return m_content; }
|
||||
const String& flags() const { return m_flags; }
|
||||
|
||||
Value to_string() const override;
|
||||
|
||||
private:
|
||||
virtual bool is_regexp_object() const override { return true; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user