1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 12:05:13 +00:00
serenity/Userland/Libraries/LibWeb/WebAssembly
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
..
WebAssemblyObject.cpp LibJS: Replace Object's create_empty() with create() taking a prototype 2021-06-16 22:49:04 +01:00
WebAssemblyObject.h LibWasm+LibWeb: Partially resolve memory exports 2021-05-26 15:34:13 +04:30
WebAssemblyObjectPrototype.cpp LibWasm+LibWeb: Partially resolve memory exports 2021-05-26 15:34:13 +04:30
WebAssemblyObjectPrototype.h LibWasm+LibWeb: Partially resolve memory exports 2021-05-26 15:34:13 +04:30