mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
LibJS: Propagate errors from VM creation
This commit is contained in:
parent
eb5aae24f4
commit
13dfadba79
13 changed files with 15 additions and 15 deletions
|
@ -38,7 +38,7 @@ public:
|
|||
virtual void spin_event_loop_until(Function<bool()> goal_condition) = 0;
|
||||
};
|
||||
|
||||
static NonnullRefPtr<VM> create(OwnPtr<CustomData> = {});
|
||||
static ErrorOr<NonnullRefPtr<VM>> create(OwnPtr<CustomData> = {});
|
||||
~VM() = default;
|
||||
|
||||
Heap& heap() { return m_heap; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue