Age | Commit message (Collapse) | Author |
|
|
|
Allow specifying a custom format string that's being used for each item
instead of hardcoding "{}".
|
|
|
|
|
|
This would throw some really weird linker errors, so let's prevent it
from happening instead!
|
|
This adds a NOLINT directive to the definition of the TODO() macro.
clang-tidy wants the assert replaced with a static_assert, since the
macro simply resolves to assert(false). This is obviously nonsensical,
since we want the code to still compile even with TODO().
The same fix has already been implemented for VERIFY_NOT_REACHED().
|
|
If the trimmed string would be the entire string, just return *this
instead of creating a new StringImpl.
|
|
Instead of calling String::to_lowercase(), do case-insensitive hashing
and comparison.
|
|
This allows Lagom to be built successfully for Apple M1.
Fixes #12644.
|
|
Add a partial implementation of HTML5 Worker API.
Messages can be sent from the inner context externally.
|
|
While the code did already VERIFY that the ErrorOr holds a value, this
was done by Variant, so the error message was just that `has<T>()` is
false. This is less helpful than I would like, especially if backtraces
are not working and this is all you have to go on. Adding this extra
VERIFY means the assertion message (`!is_error()`) is easier to
understand.
|
|
These APIs are only used by userland, and String is OOM-infallible,
so let's just ifdef it out of the Kernel.
|
|
These APIs are only used by userland, and String is OOM-infallible,
so let's just ifdef it out of the Kernel.
|
|
These APIs are only used by userland, and String is OOM-infallible,
so let's just ifdef it out of the Kernel.
|
|
These APIs are only used by userland, and String is OOM-infallible,
so let's just ifdef it out of the Kernel.
|
|
This let's us avoid a heap allocation.
|
|
These APIs are only used by userland, and String is OOM-infallible,
so let's just ifdef it out of the Kernel.
|
|
This let's us propagate allocation errors from this API.
|
|
This let's us avoid the infallible String allocations.
|
|
This lets us safely handle allocation failure.
|
|
This lets us safely handle allocation failure.
|
|
This lets us safely handle allocation failure.
|
|
Parse JSON floating point literals properly,
No longer throwing a SyntaxError when the decimal portion
of the number exceeds the capacity of u32.
Added tests to AK/TestJSON and LibJS/builtins/JSON/JSON.parse
|
|
The only part of Unveil that can't handle OOM gracefully is the
String::formatted() use in the node metadata.
|
|
We shouldn't let copy/move ctors or assignments be instantiated if the
assignee type does not have a copy/move constructor (even if they're not
used anywhere).
|
|
The counterpart to the IsSpecializationOf<...> template.
|
|
New users of WeakPtr in the kernel should use try_make_weak_ptr instead
|
|
This will allow us to propagate allocation errors that may be raised by
the construction of the WeakLink.
|
|
This matches the likes of the adopt_{own, ref}_if_nonnull family and
also frees up the name to allow us to eventually add OOM-fallible
versions of these functions.
|
|
|
|
We can emit way nicer code for the just-append-a-single-byte case.
|
|
|
|
|
|
Before this was incorrectly assuming that if the current node `n` was at
least the key and the left child of `n` was below the key that `n` was
always correct.
However, the right child(ren) of the left child of `n` could still be
at least the key.
Also added some tests which produced the wrong results before this.
|
|
Static variables consume memory and can be subject to less
optimization. This variable is only used in 1 place and can be moved
into the function and make it non-static.
|
|
|
|
This file allows us to decrypt TLS messages in wireshark, which can help
immensely in debugging network stuff :^)
|
|
This is not ASCII-betical because `_` comes after all the uppercase
characters. Treating `_` as a ` ` (space character), these lists are
now alphabetical.
|
|
|
|
This removes an ifdef for the Kernel
|
|
|
|
Blowing up the debug console with a fajillion FIXME's whenever you
navigate in the web inspector is no fun.
|
|
CLion and/or clangd didn't like the consteval and highlighted visit() as
an error, just replace it with constexpr as it makes no difference here.
|
|
Instead, add a note to explain that there's a const variant of data()
method in the parent BitmapView class.
|
|
This was showing up in profiles of Browser, and it really shouldn't be.
|
|
This allows more ergonomic memory allocation failure related error
checking using the TRY macro.
|
|
This function has no users, nor should it ever be used in the kernel,
as all allocation failures in the Kernel should be explicitly checked.
|
|
This function is infallible, and so we would like to exclude it from
the Kernel, which includes this header.
|
|
This allows more ergonomic memory allocation failure related error
checking using the TRY macro.
|
|
The default Vector type has its inline capacity set to 0, which means
any Vector with non-zero inline capacity was unformattable.
|