mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:17:45 +00:00
LibJS: Propagate errors from Intrinsics initialization
This commit is contained in:
parent
af118f2a67
commit
53852452b2
6 changed files with 15 additions and 13 deletions
|
@ -15,7 +15,7 @@ class Intrinsics final : public Cell {
|
|||
JS_CELL(Intrinsics, Cell);
|
||||
|
||||
public:
|
||||
static NonnullGCPtr<Intrinsics> create(Realm&);
|
||||
static ThrowCompletionOr<NonnullGCPtr<Intrinsics>> create(Realm&);
|
||||
|
||||
Shape* empty_object_shape() { return m_empty_object_shape; }
|
||||
|
||||
|
@ -98,7 +98,7 @@ private:
|
|||
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
void initialize_intrinsics(Realm&);
|
||||
ThrowCompletionOr<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