1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:47:35 +00:00
serenity/Userland/Applications
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
..
3DFileViewer AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
About Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
AnalogClock AnalogClock: Use YYYY-MM-DD format for window title 2021-05-14 20:17:09 +01:00
Browser LibGUI: Allow tweaking each edge of TabWidget's content margins 2021-06-15 14:28:39 +02:00
Calculator Calculator: Fix offensive button misalignment 2021-06-13 21:48:15 +02:00
Calendar Revert "Userland: static vs non-static constexpr variables" 2021-05-21 10:30:52 +01:00
CrashReporter Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
Debugger Everywhere: Remove accidental '\n' from various outln() invocations 2021-06-03 22:50:21 +02:00
DisplaySettings AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
FileManager Utilities: Change unzip -o option to -d 2021-06-13 17:05:48 +01:00
FontEditor AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
Help Help: When opening a page, make sure it is selected in the tree view 2021-06-16 16:30:54 +04:30
HexEditor HexEditor: Use Yes/No/Cancel prompts for message boxes 2021-06-16 10:52:23 +02:00
ImageViewer Applications: Use titlecase and distinct underlined characters in menus 2021-05-21 18:41:28 +01:00
IRCClient Applications: Use titlecase and distinct underlined characters in menus 2021-05-21 18:41:28 +01:00
KeyboardMapper Everywhere: Replace Vector<T*> with nonnull entries with Vector<T&> 2021-06-08 19:14:24 +02:00
KeyboardSettings Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
Magnifier WindowServer+Magnifier: Make Magnifier buttery smooth :^) 2021-06-07 10:22:25 +02:00
MouseSettings Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
PDFViewer PDFViewer: Switch back to up/down page icons 2021-06-12 22:45:01 +04:30
Piano AK: Add support for removing SinglyLinkedList nodes during iteration 2021-06-15 23:59:21 +01:00
PixelPaint PixelPaint: Set the image title when creating a new image 2021-06-16 21:27:05 +02:00
Run AK: Remove URLParser 2021-06-01 09:28:05 +02:00
SoundPlayer SoundPlayer: Enable stop button when play button clicked 2021-06-08 00:54:07 +04:30
SpaceAnalyzer AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
Spreadsheet LibJS: Replace Object's create_empty() with create() taking a prototype 2021-06-16 22:49:04 +01:00
SystemMonitor Everywhere: Replace Vector<T*> with nonnull entries with Vector<T&> 2021-06-08 19:14:24 +02:00
Terminal Terminal: Don't show window until we've added menubar to it 2021-06-12 12:01:54 +02:00
TextEditor TextEditor: Don't allow opening directories 2021-06-13 12:38:07 +01:00
ThemeEditor Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
VideoPlayer VideoPlayer: Create application to parse (and eventually play) videos 2021-06-12 22:48:28 +04:30
Welcome AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
CMakeLists.txt VideoPlayer: Create application to parse (and eventually play) videos 2021-06-12 22:48:28 +04:30