1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 17:55:09 +00:00
serenity/Userland/Libraries/LibJS/Runtime/Intl
Linus Groh 5db38d7ba1 LibJS: Replace standalone js_bigint() with BigInt::create()
Three standalone Cell creation functions remain in the JS namespace:

- js_bigint()
- js_string()
- js_symbol()

All of them are leftovers from early iterations when LibJS still took
inspiration from JSC, which itself has jsString(). Nowadays, we pretty
much exclusively use static create() functions to construct types
allocated on the JS heap, and there's no reason to not do the same for
these.
Also change the return type from BigInt* to NonnullGCPtr<BigInt> while
we're here.

This is patch 1/3, replacement of js_string() and js_symbol() follow.
2022-12-07 16:43:06 +00:00
..
AbstractOperations.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
AbstractOperations.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Collator.cpp LibJS: Implement get Intl.Collator.prototype.compare 2022-02-20 22:05:59 -05:00
Collator.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CollatorCompareFunction.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CollatorCompareFunction.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
CollatorConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
CollatorConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
CollatorPrototype.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
CollatorPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
DateTimeFormat.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DateTimeFormat.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DateTimeFormatConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
DateTimeFormatConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
DateTimeFormatFunction.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DateTimeFormatFunction.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
DateTimeFormatPrototype.cpp LibLocale: Move locale source files to the LibLocale folder 2022-09-05 14:37:16 -04:00
DateTimeFormatPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
DisplayNames.cpp Userland: Move files destined for LibLocale to the Locale namespace 2022-09-05 14:37:16 -04:00
DisplayNames.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DisplayNamesConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
DisplayNamesConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
DisplayNamesPrototype.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
DisplayNamesPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
DurationFormat.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
DurationFormat.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DurationFormatConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
DurationFormatConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
DurationFormatPrototype.cpp LibJS: Update DurationFormat AO text to align with ECMA-402 and Temporal 2022-08-30 14:26:11 -04:00
DurationFormatPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Intl.cpp LibJS: Use Object's new deferred instrinsic storage for GlobalObject 2022-11-26 09:36:22 +01:00
Intl.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
ListFormat.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
ListFormat.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ListFormatConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
ListFormatConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
ListFormatPrototype.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
ListFormatPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Locale.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Locale.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LocaleConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
LocaleConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
LocalePrototype.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
LocalePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
MathematicalValue.cpp LibJS: Replace standalone js_bigint() with BigInt::create() 2022-12-07 16:43:06 +00:00
MathematicalValue.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
NumberFormat.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
NumberFormat.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
NumberFormatConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
NumberFormatConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
NumberFormatFunction.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
NumberFormatFunction.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
NumberFormatPrototype.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
NumberFormatPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PluralRules.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PluralRules.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PluralRulesConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
PluralRulesConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PluralRulesPrototype.cpp LibLocale: Move locale source files to the LibLocale folder 2022-09-05 14:37:16 -04:00
PluralRulesPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
RelativeTimeFormat.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
RelativeTimeFormat.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
RelativeTimeFormatConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
RelativeTimeFormatConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
RelativeTimeFormatPrototype.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
RelativeTimeFormatPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Segmenter.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
Segmenter.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SegmenterConstructor.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
SegmenterConstructor.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
SegmenterPrototype.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
SegmenterPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
SegmentIterator.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
SegmentIterator.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
SegmentIteratorPrototype.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
SegmentIteratorPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Segments.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
Segments.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
SegmentsPrototype.cpp LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
SegmentsPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
SingleUnitIdentifiers.h LibJS+LibUnicode: Add "microsecond" and "nanosecond" as sanctioned units 2022-11-03 18:37:48 +00:00