1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:17:43 +00:00
serenity/Userland
Andreas Kling 42b5c896e8 LibJS: Don't "copy construct" temporary value in ThrowCompletionOr ctor
It was possible for the generic ThrowCompletionOr constructor to
"copy-construct" a JS Object when instantiating a ThrowCompletionOr
via e.g `return *object;`.

This happened because it chose the Object(Object& prototype) constructor
which will be removed in a subsequent commit. It was not easy to debug.

As a first step towards avoiding this in the future, the generic
ThrowCompletionOr constructor now takes the value as a const reference.
2022-12-14 15:11:57 +01:00
..
Applets LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
Applications Presenter: Provide default text styles to text objects 2022-12-14 07:45:06 -05:00
BuggieBox Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00
Demos LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
DevTools Everywhere: Stop shoving things into ::std and mentioning them as such 2022-12-14 11:44:32 +01:00
DynamicLoader AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Games Games: Add ColorLines 2022-12-12 17:30:04 +00:00
Libraries LibJS: Don't "copy construct" temporary value in ThrowCompletionOr ctor 2022-12-14 15:11:57 +01:00
Services LibJS: Convert Array::create{,_from}() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
Shell Shell: Disable interactive mode on '-c' 2022-12-12 13:57:06 +00:00
Utilities LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00