summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/MapConstructor.cpp
AgeCommit message (Collapse)Author
2021-07-08LibJS: Reorder and add missing name & length properties to Built-insIdan Horowitz
The specification dicatates that each built-in will have a length and name property. (defined in that order)
2021-07-06LibJS: Add define_direct_property and remove the define_property helperIdan Horowitz
This removes all usages of the non-standard define_property helper method and replaces all it's usages with the specification required alternative or with define_direct_property where appropriate.
2021-07-05LibJS: Remove unnecessary value_or() from get()Linus Groh
Object::get() never returns an empty value anymore, as per the spec, so having a value_or() fallback is no longer needed.
2021-06-28LibJS: Accept FlyStrings in the NativeFunction constructorsIdan Horowitz
This makes the implicit run-time assertion in PropertyName::to_string() into an explicit compile-time requirement, removes a wasteful FlyString -> PropertyName -> FlyString construction from NativeFunction::create() and allows setting the function name to a null string for anonymous native functions.
2021-06-27LibJS: Rename Function => FunctionObjectAndreas Kling
2021-06-25LibJS: Change PropertyName(Symbol*) => PropertyName(Symbol&)Linus Groh
Requires a bunch of find-and-replace updates across LibJS, but constructing a PropertyName from a nullptr Symbol* should not be possible - let's enforce this at the compiler level instead of using VERIFY() (and already dereference Symbol pointers at the call site).
2021-06-20LibJS: Use OrdinaryCreateFromConstructor() in a bunch of constructorsLinus Groh
Resolves various FIXMEs :^)
2021-06-13LibJS: Add missing ECMA-262 section/title/URL comments to MapLinus Groh
2021-06-13LibJS: Add the Map built-in objectIdan Horowitz