mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Add a bunch of fast_is<T> helpers for commonly checked types
Based on what was hitting dynamic_cast<T> on Speedometer.
This commit is contained in:
committed by
Andreas Kling
parent
c0cbd439a2
commit
84626c7db2
Notes:
github-actions[bot]
2025-04-18 12:48:02 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/84626c7db27 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4395
@@ -191,6 +191,7 @@ public:
|
||||
|
||||
virtual bool is_dom_node() const { return false; }
|
||||
virtual bool is_function() const { return false; }
|
||||
virtual bool is_promise() const { return false; }
|
||||
virtual bool is_error() const { return false; }
|
||||
virtual bool is_date() const { return false; }
|
||||
virtual bool is_number_object() const { return false; }
|
||||
|
||||
Reference in New Issue
Block a user