1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 23:58:12 +00:00
serenity/Userland/Libraries/LibJS/Runtime/Temporal
Andreas Kling 4abdb68655 LibJS: Remove Object(Object& prototype) footgun
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-14 15:11:57 +01:00
..
AbstractOperations.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
AbstractOperations.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Calendar.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
Calendar.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CalendarConstructor.cpp LibJS: Do not invoke Cell::vm in constructors before Cell is constructed 2022-09-15 09:45:13 +02:00
CalendarConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
CalendarPrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
CalendarPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Duration.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
Duration.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DurationConstructor.cpp LibJS/Temporal: Rename ToIntegerWithRounding to ToIntegerIfIntegral 2022-11-20 11:56:56 +00:00
DurationConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
DurationPrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
DurationPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Instant.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
Instant.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
InstantConstructor.cpp LibJS: Replace standalone js_bigint() with BigInt::create() 2022-12-07 16:43:06 +00:00
InstantConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
InstantPrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
InstantPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
ISO8601.cpp LibJS: Align ISO 8601 grammar with annotations from IXDTF 2022-11-03 19:15:50 +00:00
ISO8601.h LibJS: Align ISO 8601 grammar with annotations from IXDTF 2022-11-03 19:15:50 +00:00
Now.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
Now.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainDate.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
PlainDate.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainDateConstructor.cpp LibJS: Do not invoke Cell::vm in constructors before Cell is constructed 2022-09-15 09:45:13 +02:00
PlainDateConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainDatePrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainDatePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainDateTime.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
PlainDateTime.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainDateTimeConstructor.cpp LibJS: Do not invoke Cell::vm in constructors before Cell is constructed 2022-09-15 09:45:13 +02:00
PlainDateTimeConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainDateTimePrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainDateTimePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainMonthDay.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
PlainMonthDay.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainMonthDayConstructor.cpp LibJS: Do not invoke Cell::vm in constructors before Cell is constructed 2022-09-15 09:45:13 +02:00
PlainMonthDayConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainMonthDayPrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainMonthDayPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainTime.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
PlainTime.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainTimeConstructor.cpp LibJS: Do not invoke Cell::vm in constructors before Cell is constructed 2022-09-15 09:45:13 +02:00
PlainTimeConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainTimePrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainTimePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainYearMonth.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
PlainYearMonth.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainYearMonthConstructor.cpp LibJS: Do not invoke Cell::vm in constructors before Cell is constructed 2022-09-15 09:45:13 +02:00
PlainYearMonthConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainYearMonthPrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainYearMonthPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Temporal.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
Temporal.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
TimeZone.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
TimeZone.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TimeZoneConstructor.cpp LibJS: Rename IsValidTimeZoneName to IsAvailableTimeZoneName 2022-10-17 12:56:05 +02:00
TimeZoneConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
TimeZonePrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
TimeZonePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
ZonedDateTime.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
ZonedDateTime.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ZonedDateTimeConstructor.cpp LibJS: Do not invoke Cell::vm in constructors before Cell is constructed 2022-09-15 09:45:13 +02:00
ZonedDateTimeConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
ZonedDateTimePrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
ZonedDateTimePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00