mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibWeb: Stop using Bindings::wrap() in a bunch of places
wrap() is now basically a no-op so we should stop using it everywhere and eventually remove it. This patch removes uses of wrap() in non-generated code.
This commit is contained in:
parent
45425de849
commit
9176a0de99
7 changed files with 32 additions and 56 deletions
|
@ -43,7 +43,7 @@ void AbortSignal::signal_abort(JS::Value reason)
|
|||
if (!reason.is_undefined())
|
||||
m_abort_reason = reason;
|
||||
else
|
||||
m_abort_reason = wrap(realm(), AbortError::create(global_object(), "Aborted without reason"));
|
||||
m_abort_reason = AbortError::create(global_object(), "Aborted without reason").ptr();
|
||||
|
||||
// 3. For each algorithm in signal’s abort algorithms: run algorithm.
|
||||
for (auto& algorithm : m_abort_algorithms)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue