mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibJS: Remove OOM handling from JS intrinsics initialization
This commit is contained in:
parent
0fe9bbad2e
commit
49f1ef52ad
Notes:
github-actions[bot]
2025-02-05 13:06:19 +00:00
Author: https://github.com/trflynn89
Commit: 49f1ef52ad
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3450
Reviewed-by: https://github.com/shannonbooth ✅
3 changed files with 6 additions and 8 deletions
|
@ -18,7 +18,7 @@ class Intrinsics final : public Cell {
|
|||
GC_DECLARE_ALLOCATOR(Intrinsics);
|
||||
|
||||
public:
|
||||
static ThrowCompletionOr<GC::Ref<Intrinsics>> create(Realm&);
|
||||
static GC::Ref<Intrinsics> create(Realm&);
|
||||
|
||||
GC::Ref<Shape> empty_object_shape() { return *m_empty_object_shape; }
|
||||
|
||||
|
@ -107,7 +107,7 @@ private:
|
|||
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
ThrowCompletionOr<void> initialize_intrinsics(Realm&);
|
||||
void initialize_intrinsics(Realm&);
|
||||
|
||||
#define __JS_ENUMERATE(ClassName, snake_name, PrototypeName, ConstructorName, ArrayType) \
|
||||
void initialize_##snake_name();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue