Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-29 | LibJS: Fully qualify the use of AK::is in MUST_OR_THROW_OOM | Timothy Flynn | |
This is to allow using this macro in contexts that have defined `is` already. For example, in ObjectConstructor, there is a native function `is` which would trip up the compiler without this change. | |||
2023-01-29 | LibJS: Add a method to ThrowCompletionOr to drop allocation errors | Timothy Flynn | |
This should solely be used to ignore completions from Heap::allocate in currently-infallible contexts. It's mostly meant to let us both ignore these errors and mark them with a FIXME in one go. | |||
2023-01-29 | LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors | Timothy Flynn | |
Note that as of this commit, there aren't any such throwers, and the call site in Heap::allocate will drop exceptions on the floor. This commit only serves to change the declaration of the overrides, make sure they return an empty value, and to propagate OOM errors frm their base initialize invocations. | |||
2023-01-29 | LibJS+LibWeb: Move headers around to allow including Value from Cell | Timothy Flynn | |
The goal here is to allow Cell::initialize to return a ThrowCompletion, to handle OOM for example. Cell.h will then need to include Completion.h which must include Value.h. This currently can't happen because Value.h includes BigInt.h, which in turn includes Cell.h. So we would have an include cycle. This removes BigInt.h from Value.h, as it is forward-declarable (it is only referred to with a reference or pointer). Then the Value overload for Cell::Visitor::visit is moved to Cell.h, and missing BigInt.h includes as peppered as needed. | |||
2023-01-29 | LibJS: Define Date constants such that translation units don't copy them | Timothy Flynn | |
Variables that are constexpr must be delcared inline in the global namespace to prevent copying them. The static keyword is meaningless on variables in headers in the global namespace. Declare the static bigint as extern and define it out-of-line instead. | |||
2023-01-28 | LibJS: Replace some deprecated_string() with utf8_string() in Temporal | Linus Groh | |
The remaining ones are needed for PropertyKey, which is not yet String compatible. | |||
2023-01-28 | LibJS: Replace to_deprecated_string() with to_string() in Temporal | Linus Groh | |
Turns out all of these can already be replaced with no further changes! | |||
2023-01-28 | LibWeb: Replace ARIA role static FlyStrings with an enum | MacDue | |
This replaces the FlyStrings for ARIA roles that were constructed in a [[gnu::constructor]] with a single enum. I came across this as the DOM inspector was crashing due to a null FlyString for an ARIA role. After fixing that, I was confused as to why these roles were not an enum. Looking at the spec there's a fixed list of roles and switching from references to static strings to an enum was pretty much an exercise in find and replace :). No functional changes (outside of fixing the mentioned crash). | |||
2023-01-28 | LibAudio: Remove `try_` prefix from fallible LoaderPlugin methods | Linus Groh | |
2023-01-28 | LibAudio: Remove `try_` prefix from fallible LoaderPlugin methods | Linus Groh | |
2023-01-28 | LibCore: Remove `try_` prefix from fallible SharedCircularQueue methods | Linus Groh | |
2023-01-28 | AK: Remove `try_` prefix from FixedArray creation functions | Linus Groh | |
2023-01-28 | LibGfx+icc: Read and display lut16Type and lut8Type ICC tag types | Nico Weber | |
2023-01-28 | LibGfx: Use AssertSize<> in ICC/Profile.cpp | Nico Weber | |
2023-01-28 | LibWasm: Implement data.drop instruction | Sam Atkins | |
2023-01-28 | LibWasm: Move memory.init code together with other memory.foo impls | Sam Atkins | |
And add a spec link while I'm at it. | |||
2023-01-28 | LibWasm: Implement memory.copy instruction | Sam Atkins | |
2023-01-28 | LibWasm: Implement memory.fill instruction | Sam Atkins | |
2023-01-28 | LibGfx: Make PNGImageDecoderPlugin::icc_data() return data if present | Nico Weber | |
2023-01-28 | LibGfx: Process colorspace-related chunks in PNGLoader | Nico Weber | |
This stores the data from all these chunks on PNGLoadingContext but doesn't do anything with it yet. | |||
2023-01-28 | LibJS: Add spec comments to FunctionPrototype | Linus Groh | |
2023-01-28 | LibJS: Add spec comments to FinalizationRegistryPrototype | Linus Groh | |
2023-01-28 | LibJS: Add spec comments to FinalizationRegistryConstructor | Linus Groh | |
2023-01-28 | LibJS: Add spec comments to DataViewPrototype | Linus Groh | |
2023-01-28 | LibJS: Add spec comments to DataViewConstructor | Linus Groh | |
2023-01-28 | LibJS: Add spec comments to Completion | Linus Groh | |
2023-01-28 | LibJS: Add spec comments to BooleanConstructor | Linus Groh | |
2023-01-28 | LibJS: Add spec comments to BigIntPrototype | Linus Groh | |
2023-01-28 | LibJS: Add spec comments to ArrayConstructor | Linus Groh | |
2023-01-28 | LibJS: Add spec comments to ArrayBufferConstructor | Linus Groh | |
2023-01-28 | LibJS: Implement the thisBooleanValue AO and use it in BooleanPrototype | Linus Groh | |
2023-01-28 | LibGfx: Split ICC/Profile.{h,cpp} into several files | Nico Weber | |
s15Fixed16Number and XYZNumber are somewhat awkwardly duplicated in both Profile.cpp and TagTypes.cpp. Other than that, this is a pure code move. No behavior change. | |||
2023-01-28 | LibGfx: Bump copyright year in ICC/Profile.{h,cpp} | Nico Weber | |
2023-01-28 | LibGfx: Move ICCProfile.{h,cpp} to ICC/Profile.{h,cpp} | Nico Weber | |
2023-01-28 | LibWeb: Add a few extra spec links to CanvasGradient | MacDue | |
2023-01-28 | LibWeb: Throw exception if any canvas radial gradient radius is < 0 | MacDue | |
As per the specification: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createradialgradient | |||
2023-01-28 | LibJS: Port Intl.DurationFormat to String | Timothy Flynn | |
2023-01-28 | LibJS: Port Intl.RelativeTimeFormat to String | Timothy Flynn | |
2023-01-28 | LibJS: Remove last use of DeprecatedString from Intl.MathematicalValue | Timothy Flynn | |
2023-01-28 | LibLocale: Remove last use of DeprecatedString from LibLocale | Timothy Flynn | |
2023-01-28 | LibJS: Use String::join and String::trim in Temporal AOs | Timothy Flynn | |
2023-01-27 | AK: Remove StringBuilder::build() in favor of to_deprecated_string() | Linus Groh | |
Having an alias function that only wraps another one is silly, and keeping the more obvious name should flush out more uses of deprecated strings. No behavior change. | |||
2023-01-27 | LibXML: Remove declarations for non-existent methods | Sam Atkins | |
2023-01-27 | LibWeb: Remove declarations for non-existent methods | Sam Atkins | |
2023-01-27 | LibWasm: Remove declarations for non-existent methods | Sam Atkins | |
2023-01-27 | LibVideo: Remove declarations for non-existent methods | Sam Atkins | |
2023-01-27 | LibTLS: Remove declarations for non-existent methods | Sam Atkins | |
2023-01-27 | LibRegex: Remove declarations for non-existent methods | Sam Atkins | |
2023-01-27 | LibPDF: Remove declarations for non-existent methods | Sam Atkins | |
2023-01-27 | LibJS: Remove declarations for non-existent methods | Sam Atkins | |