1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:41:00 +00:00
serenity/Userland/Libraries
Linus Groh 317b88a8c3 LibJS: Replace Object's create_empty() with create() taking a prototype
This now matches the spec's OrdinaryObjectCreate() across the board:
instead of implicitly setting the created object's prototype to
%Object.prototype% and then in many cases setting it to a nullptr right
away, it now has an 'Object* prototype' parameter with _no default
value_. This makes the code easier to compare with the spec, very clear
in terms of what prototype is being used as well as avoiding unnecessary
shape transitions.

Also fixes a couple of cases were we weren't setting the correct
prototype.

There's no reason to assume that the object would not be empty (as in
having own properties), so let's follow our existing pattern of
Type::create(...) and simply call it 'create'.
2021-06-16 22:49:04 +01:00
..
LibArchive LibArchive: Move method implementations away from header 2021-05-17 18:14:05 +01:00
LibAudio LibAudio: Add support for WAVE_FORMAT_EXTENSIBLE 2021-06-09 22:58:44 +04:30
LibC LibC: Make sure the definition for struct timeval is available 2021-06-16 20:08:13 +02:00
LibCards LibCards: Draw card stack background when the entire stack is moving 2021-06-04 23:48:25 +02:00
LibChess LibChess: Fixed PGN export bug (#7300) 2021-05-20 08:32:19 +02:00
LibCompress LibCompress: Discard GZip NAME & COMMENT optional strings 2021-05-18 08:09:21 +02:00
LibCore LibCore: Allow TCPServer to be blocking 2021-06-16 09:10:48 +02:00
LibCoreDump Everywhere: Use linusg@serenityos.org for my copyright headers 2021-04-22 22:51:19 +02:00
LibCpp LibCpp: Remove InlineLinkedList from the list of known types 2021-06-16 10:40:01 +02:00
LibCrypt Everywhere: Add a blank line after copyright header where missing 2021-05-15 00:27:09 +01:00
LibCrypto LibCrypto: Add {Signed,Unsigned}BigInteger::from_base{2, 8, 16} helpers 2021-06-14 01:45:04 +01:00
LibDebug AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
LibDesktop Userland: Mark subclasses of IPC::{Client,Server}Connection final 2021-05-23 09:53:55 +02:00
LibDiff AK+Everywhere: Consolidate String::index_of() and String::find() 2021-05-24 11:59:18 +02:00
LibDl LibC+LibELF: Implement dladdr() 2021-06-06 22:16:11 +02:00
LibELF LibC+LibELF: Implement dladdr() 2021-06-06 22:16:11 +02:00
LibGemini LibGemini: Replace fprintf(stderr) with warnln() 2021-05-31 17:43:54 +01:00
LibGfx LibGfx: Add a bunch of [[nodiscard]] to Point 2021-06-16 21:53:10 +02:00
LibGL LibGL: Implement very basic version of glGetFloatv 2021-06-09 10:49:38 +02:00
LibGUI LibGUI: Allow tweaking each edge of TabWidget's content margins 2021-06-15 14:28:39 +02:00
LibHTTP LibHTTP: Add HTTP Basic Authentication header generation and parsing 2021-06-11 11:37:15 +02:00
LibImageDecoderClient LibIPC: Remove unnecessary IPC::ServerConnection::handshake() 2021-05-23 09:53:55 +02:00
LibIMAP LibIMAP: Support for remaining IMAP commands 2021-06-11 23:58:28 +04:30
LibIPC LibIPC: Fix unaligned u32 access in drain_messages_from_peer() 2021-05-24 09:04:22 +02:00
LibJS LibJS: Replace Object's create_empty() with create() taking a prototype 2021-06-16 22:49:04 +01:00
LibKeyboard LibKeyboard: Use correct filename in debug message 2021-06-06 00:21:12 +01:00
LibLine LibLine: Actually remove the two levels of deferred_invoke 2021-06-07 02:22:40 +04:30
LibM LibM: Implement nearbyint, nearbyintl and nearbyintf 2021-06-08 17:29:57 +02:00
LibMarkdown LibMarkdown: Wrap non-inline code blocks in <pre> 2021-06-09 18:06:54 +01:00
LibPCIDB Everywhere: "file name" => "filename" 2021-04-29 22:16:18 +02:00
LibPDF LibPDF: Convert to east-const to comply with the recent style changes 2021-06-12 22:45:01 +04:30
LibProtocol LibProtocol: Use URL class in RequestClient::start_request argument 2021-06-06 16:00:11 +02:00
LibPthread LibPthread: Correct error check in sem_post and sem_wait 2021-06-01 08:29:56 +02:00
LibRegex LibRegex: Display correct position for Compare in REGEX_DEBUG 2021-06-16 16:30:12 +04:30
LibSanitizer Userland: Port UBSAN implementation to userspace 2021-05-27 15:18:03 +02:00
LibSQL Userland: Allow building SerenityOS with -funsigned-char 2021-06-13 18:52:58 +02:00
LibSymbolication LibSymbolication: Rename Client.{cpp,h} => Symbolication.{cpp,h} 2021-05-22 18:54:22 +02:00
LibSyntax LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30
LibSystem Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibTest LibJS: Add all of the WeakMap.prototype methods (delete, get, has, set) 2021-06-12 10:44:28 +01:00
LibTextCodec LibTextCodec: Add ISO-8859-15 (aka Latin-9) encoding 2021-06-15 15:12:09 +01:00
LibThreading Userland: Rename LibThread => LibThreading 2021-05-22 18:54:22 +02:00
LibTLS Everywhere: Replace Vector<T*> with nonnull entries with Vector<T&> 2021-06-08 19:14:24 +02:00
LibTTF Everywhere: codepoint => code point 2021-06-01 10:01:11 +02:00
LibVideo LibVideo/VP9: Add Decoder and begin parsing uncompressed header data 2021-06-12 22:48:28 +04:30
LibVT LibVT: Implement DECIC/DECDC 2021-06-10 17:18:02 +02:00
LibWasm AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
LibWeb LibJS: Replace Object's create_empty() with create() taking a prototype 2021-06-16 22:49:04 +01:00
LibWebSocket AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
LibX86 AK+LibX86: Generalize u128/256 to AK::UFixedBigInt 2021-06-11 18:14:11 +04:30
CMakeLists.txt LibIMAP: Add a new IMAP client and support NOOP 2021-06-11 23:58:28 +04:30