summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS
AgeCommit message (Collapse)Author
2022-12-14LibJS: Remove Object(Object& prototype) footgunAndreas Kling
This constructor was easily confused with a copy constructor, and it was possible to accidentally copy-construct Objects in at least one way that we dicovered (via generic ThrowCompletionOr construction). This patch adds a mandatory ConstructWithPrototypeTag parameter to the constructor to disambiguate it.
2022-12-14LibJS: Don't "copy construct" temporary value in ThrowCompletionOr ctorAndreas Kling
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-14Everywhere: Stop shoving things into ::std and mentioning them as suchAli Mohammad Pur
Note that this still keeps the old behaviour of putting things in std by default on serenity so the tools can be happy, but if USING_AK_GLOBALLY is unset, AK behaves like a good citizen and doesn't try to put things in the ::std namespace. std::nothrow_t and its friends get to stay because I'm being told that compilers assume things about them and I can't yeet them into a different namespace...for now.
2022-12-14LibJS: Convert WrappedFunction::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert WeakSet::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert WeakRef::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert WeakMap::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert TypedArray::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert SymbolObject::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert StringObject::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert StringIterator::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert SetIterator::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Set::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert RegExpStringIterator::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert RegExpObject::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Realm::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert ProxyObject::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert PromiseResolvingFunction::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert PromiseFooElementFunction::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert PromiseReaction::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Promise::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Object::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert NumberObject::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert NativeFunction::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert MapIterator::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Map::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Intrinsics::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Intl::Segments::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Intl::SegmentIterator::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Intl::NumberFormatFunction::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Intl::Locale::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Intl::DateTimeFormatFunction::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Intl::CollatorCompareFunction::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert GeneratorObject::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Error::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert ECMAScriptFunctionObject::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Date::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert DataView::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert BoundFunction::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert BooleanObject::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert BigIntObject::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert AsyncFromSyncIterator::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert ArrayIterator::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert ArrayBuffer::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Array::create{,_from}() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert AggregateError::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Convert Accessor::create() to NonnullGCPtrLinus Groh
2022-12-14LibJS: Explictly assert that a null GCPtr is not dereferencedTimothy Flynn
2022-12-13LibJS: Support MM/DD/YYYY HH:MM <timezone-offset> format for DateLuke Wilde
Required by Discord to determine if it should show Christmas themed loading tips on the loading screen. Fixes #16473.
2022-12-12LibJS: Add spec comments to AggregateErrorConstructorLinus Groh