Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								2692db8699 
								
							 
						 
						
							
							
								
								LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors  
							
							... 
							
							
							
							Note that as of this commit, there aren't any such throwers, and the
call site in Heap::allocate will drop exceptions on the floor. This
commit only serves to change the declaration of the overrides, make sure
they return an empty value, and to propagate OOM errors frm their base
initialize invocations. 
							
						 
						
							2023-01-29 00:02:45 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								1c1b902a6a 
								
							 
						 
						
							
							
								
								LibJS+LibWeb: Move headers around to allow including Value from Cell  
							
							... 
							
							
							
							The goal here is to allow Cell::initialize to return a ThrowCompletion,
to handle OOM for example. Cell.h will then need to include Completion.h
which must include Value.h. This currently can't happen because Value.h
includes BigInt.h, which in turn includes Cell.h. So we would have an
include cycle.
This removes BigInt.h from Value.h, as it is forward-declarable (it is
only referred to with a reference or pointer). Then the Value overload
for Cell::Visitor::visit is moved to Cell.h, and missing BigInt.h
includes as peppered as needed. 
							
						 
						
							2023-01-29 00:02:45 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								8dc4e05ecf 
								
							 
						 
						
							
							
								
								LibJS: Port Intl.DurationFormat to String  
							
							
							
						 
						
							2023-01-28 00:13:59 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								4c8f7d76c4 
								
							 
						 
						
							
							
								
								LibJS: Port Intl.RelativeTimeFormat to String  
							
							
							
						 
						
							2023-01-28 00:13:59 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								a824e1ac6a 
								
							 
						 
						
							
							
								
								LibJS: Remove last use of DeprecatedString from Intl.MathematicalValue  
							
							
							
						 
						
							2023-01-28 00:13:59 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Linus Groh 
								
							 
						 
						
							
							
							
							
								
							
							
								6e7459322d 
								
							 
						 
						
							
							
								
								AK: Remove StringBuilder::build() in favor of to_deprecated_string()  
							
							... 
							
							
							
							Having an alias function that only wraps another one is silly, and
keeping the more obvious name should flush out more uses of deprecated
strings.
No behavior change. 
							
						 
						
							2023-01-27 20:38:49 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								5e29e04122 
								
							 
						 
						
							
							
								
								LibJS+LibLocale: Propagate errors from find_regional_values_for_locale  
							
							... 
							
							
							
							This had quite the footprint. 
							
						 
						
							2023-01-27 18:00:17 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								b2097f4059 
								
							 
						 
						
							
							
								
								LibJS+LibLocale: Port Intl.DateTimeFormat to String  
							
							
							
						 
						
							2023-01-27 18:00:17 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Linus Groh 
								
							 
						 
						
							
							
							
							
								
							
							
								0f5f9acc9c 
								
							 
						 
						
							
							
								
								LibJS: Port canonicalize_time_zone_name() to String  
							
							
							
						 
						
							2023-01-26 20:20:54 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								0c2efa285a 
								
							 
						 
						
							
							
								
								LibJS+LibLocale: Port Intl.NumberFormat to String  
							
							
							
						 
						
							2023-01-24 16:23:50 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								bc9a440f31 
								
							 
						 
						
							
							
								
								LibJS: Use correct type for NumberFormat's UseGrouping internal slot  
							
							... 
							
							
							
							This was converted to an enumeration for Intl.NumberFormat V3 in commit
33698b9615 
							
						 
						
							2023-01-24 16:23:50 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								4548906e7b 
								
							 
						 
						
							
							
								
								LibJS: Propagate OOM errors from all Intl.Locale *OfLocale AOs  
							
							
							
						 
						
							2023-01-24 16:23:50 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								879a590882 
								
							 
						 
						
							
							
								
								LibJS: Propagate OOM errors from ApplyUnicodeExtensionToTag  
							
							... 
							
							
							
							These were missed in bff0e25ebe 
							
						 
						
							2023-01-24 16:23:50 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								d2ec31cbdb 
								
							 
						 
						
							
							
								
								LibJS: Remove DeprecatedString usage from Intl.PluralRules  
							
							... 
							
							
							
							This can make due with a StringView. 
							
						 
						
							2023-01-24 16:23:50 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								34574c5ee8 
								
							 
						 
						
							
							
								
								LibJS+LibWeb: Convert empty PrimitiveString invocators to String  
							
							
							
						 
						
							2023-01-22 01:03:13 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								1bcde5d216 
								
							 
						 
						
							
							
								
								LibJS: Port ListFormat and PatternPartition to String  
							
							
							
						 
						
							2023-01-22 01:03:13 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								20536897e4 
								
							 
						 
						
							
							
								
								LibJS+LibLocale: Port remaining locale APIs to String  
							
							
							
						 
						
							2023-01-22 01:03:13 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								95d1678553 
								
							 
						 
						
							
							
								
								LibJS: Mark infallible operations that may throw only due to OOM  
							
							
							
						 
						
							2023-01-20 20:31:38 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								be8907e6bb 
								
							 
						 
						
							
							
								
								LibJS: Return OptionalNone in fallible functions in the Intl namespace  
							
							
							
						 
						
							2023-01-19 23:13:44 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								bb4b6d8ce3 
								
							 
						 
						
							
							
								
								LibJS: Port Intl locale resolution to String  
							
							
							
						 
						
							2023-01-19 20:57:30 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								2f1184ccdb 
								
							 
						 
						
							
							
								
								LibJS: Do not fully qualify references to CanonicalizeUnicodeLocaleId  
							
							... 
							
							
							
							This might've been needed at some point to disambiguate between another
function of the same name that is in LibLocale. But now that it takes a
VM parameter, it is for sure clear to the compiler what is being called. 
							
						 
						
							2023-01-19 20:57:30 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								1e6e719592 
								
							 
						 
						
							
							
								
								LibJS: Propagate OOM errors from the PartitionPattern Abstract Operation  
							
							
							
						 
						
							2023-01-19 20:57:30 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								bff0e25ebe 
								
							 
						 
						
							
							
								
								LibJS: Propagate OOM errors from Intl Abstract Operations  
							
							... 
							
							
							
							This excludes the PartitionPattern AO as that has a much larger foot-
print and will be handled separately. 
							
						 
						
							2023-01-19 20:57:30 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								ca62aeb6bd 
								
							 
						 
						
							
							
								
								LibLocale+LibJS: Port locale parsing and processing to String  
							
							... 
							
							
							
							In order to prevent this commit from having to refactor almost all of
Intl, the goal here is to update the internal parsing/canonicalization
of locales within LibLocale only. Call sites which are already equiped
to handle String and OOM errors do so, however. 
							
						 
						
							2023-01-19 20:57:30 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								fc413711ee 
								
							 
						 
						
							
							
								
								LibJS: Port trivial use cases in the Intl namespace to String  
							
							
							
						 
						
							2023-01-16 10:12:37 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brian Gianforcaro 
								
							 
						 
						
							
							
							
							
								
							
							
								bffc29ae34 
								
							 
						 
						
							
							
								
								LibJS: Fix uninitialized member variable in DurationFormat  
							
							... 
							
							
							
							Reported-by: PVS Studio 
							
						 
						
							2023-01-16 09:45:46 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								afeb7273cc 
								
							 
						 
						
							
							
								
								LibJS+Everywhere: Rename Value::to_string to to_deprecated_string  
							
							
							
						 
						
							2023-01-15 01:00:20 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								8a88d4434f 
								
							 
						 
						
							
							
								
								LibJS+LibWeb: Rename number_to_string to number_to_deprecated_string  
							
							
							
						 
						
							2023-01-15 01:00:20 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								0ddc2e1f50 
								
							 
						 
						
							
							
								
								LibCrypto+Everywhere: Rename *BigInteger::to_base to to_base_deprecated  
							
							
							
						 
						
							2023-01-15 01:00:20 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								822e32eb11 
								
							 
						 
						
							
							
								
								LibJS: Reword and reorder some steps of the Intl ResolveLocale AO  
							
							... 
							
							
							
							This is an editorial change in the ECMA-402 spec. See:
4c55823 
							
						 
						
							2023-01-14 19:12:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								0ff4d8100f 
								
							 
						 
						
							
							
								
								LibJS: Consistently use spaces / parentheses in NumberFormat operations  
							
							... 
							
							
							
							These are editorial changes in the ECMA-402 spec. See:
1508825760f23a 
							
						 
						
							2023-01-14 19:12:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								0ffad2a2d1 
								
							 
						 
						
							
							
								
								LibJS: Refer to String elements as code units rather than characters  
							
							... 
							
							
							
							This is an editorial change in the ECMA-402 spec. See:
d6b3435 
							
						 
						
							2023-01-14 19:12:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								95cef87a9c 
								
							 
						 
						
							
							
								
								LibJS: Update syntax for invoking the GetOption AO from Intl objects  
							
							... 
							
							
							
							This is an editorial change in the ECMA-402 spec. See:
0ac2e10 
							
						 
						
							2023-01-14 19:12:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								2cca5d6676 
								
							 
						 
						
							
							
								
								LibJS: Fix assignment of "isNegative" in FormatNumericToString  
							
							... 
							
							
							
							These are normative changes in the Intl.NumberFormat v3 spec. See:
5a2b1d1cd48a3d 
							
						 
						
							2023-01-14 19:12:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								d30e96a209 
								
							 
						 
						
							
							
								
								LibJS: Renumber Intl.NumberFormat v3 prototypes and AOs  
							
							... 
							
							
							
							These are editorial changes in the Intl.NumberFormat v3 spec. See:
82e2f92ce6c33eb98278396010f49dd123f0c2834f31c72f3 
							
						 
						
							2023-01-14 19:12:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								d1881da2be 
								
							 
						 
						
							
							
								
								LibJS: Set approximate number range format result's "source" to "shared"  
							
							... 
							
							
							
							This is a normative change in the Intl.NumberFormat v3 spec. See:
7510e7f 
							
						 
						
							2023-01-14 19:12:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								a59ebdac2d 
								
							 
						 
						
							
							
								
								LibJS+Everywhere: Return strings by value from PrimitiveString  
							
							... 
							
							
							
							It turns out return a ThrowCompletionOr<T const&> is flawed, as the GCC
expansion trick used with TRY will always make a copy. PrimitiveString
is luckily the only such use case. 
							
						 
						
							2023-01-13 18:50:47 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								d0403ec14f 
								
							 
						 
						
							
							
								
								AK+Everywhere: Rename Utf16View::to_utf8 to to_deprecated_string  
							
							... 
							
							
							
							A subsequent commit will add to_utf8 back to create an AK::String. 
							
						 
						
							2023-01-09 23:00:24 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								115baa7e32 
								
							 
						 
						
							
							
								
								LibJS+Everywhere: Make PrimitiveString and Utf16String fallible  
							
							... 
							
							
							
							This makes construction of Utf16String fallible in OOM conditions. The
immediate impact is that PrimitiveString must then be fallible as well,
as it may either transcode UTF-8 to UTF-16, or create a UTF-16 string
from ropes.
There are a couple of places where it is very non-trivial to propagate
the error further. A FIXME has been added to those locations. 
							
						 
						
							2023-01-08 12:13:15 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								d793262beb 
								
							 
						 
						
							
							
								
								AK+Everywhere: Make UTF-16 to UTF-8 converter fallible  
							
							... 
							
							
							
							This could fail to allocate the underlying storage needed to store the
UTF-8 data. Propagate this error. 
							
						 
						
							2023-01-08 12:13:15 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								2dfa87814e 
								
							 
						 
						
							
							
								
								LibJS: Update spec comments for replacing digits in Intl.NumberFormat  
							
							... 
							
							
							
							This is an editorial change in the ECMA-402 spec. See:
06d95ed 
							
						 
						
							2022-12-15 16:24:29 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								01fc025e9d 
								
							 
						 
						
							
							
								
								LibJS: Fix a typo in an Intl.DateTimeFormat spec comment  
							
							... 
							
							
							
							This is an editorial change in the ECMA-402 spec. See:
078bea0 
							
						 
						
							2022-12-15 16:24:29 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Linus Groh 
								
							 
						 
						
							
							
							
							
								
							
							
								bd40464195 
								
							 
						 
						
							
							
								
								LibJS: Convert standalone construct() to NonnullGCPtr  
							
							
							
						 
						
							2022-12-15 06:56:37 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Linus Groh 
								
							 
						 
						
							
							
							
							
								
							
							
								6ae79a84df 
								
							 
						 
						
							
							
								
								LibJS: Convert Object::construct() to NonnullGCPtr  
							
							
							
						 
						
							2022-12-15 06:56:37 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Linus Groh 
								
							 
						 
						
							
							
							
							
								
							
							
								1c24b82dd7 
								
							 
						 
						
							
							
								
								LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr  
							
							
							
						 
						
							2022-12-15 06:56:37 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Linus Groh 
								
							 
						 
						
							
							
							
							
								
							
							
								22089436ed 
								
							 
						 
						
							
							
								
								LibJS: Convert Heap::allocate{,_without_realm}() to NonnullGCPtr  
							
							
							
						 
						
							2022-12-15 06:56:37 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								a2cf026b30 
								
							 
						 
						
							
							
								
								LibJS: Throw a RangeError when when formatting strings in DurationFormat  
							
							... 
							
							
							
							This is a normative change in the Intl.DurationFormat proposal. See:
2546080 
							
						 
						
							2022-12-15 09:40:09 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								010888acec 
								
							 
						 
						
							
							
								
								LibJS: Access DurationRecord properties in alphabetical order  
							
							... 
							
							
							
							This is a normative change in the Intl.DurationFormat proposal. See:
42e99b8 
							
						 
						
							2022-12-15 09:40:09 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								85f079dc6b 
								
							 
						 
						
							
							
								
								LibJS: Move IsValidDurationRecord check to ToDurationRecord  
							
							... 
							
							
							
							This is an editorial change in the Intl.DurationFormat proposal. See:
fb21723 
							
						 
						
							2022-12-15 09:40:09 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Timothy Flynn 
								
							 
						 
						
							
							
							
							
								
							
							
								0086a3acdb 
								
							 
						 
						
							
							
								
								LibJS: Remove infallibility markers from some Intl.DurationFormat AOs  
							
							... 
							
							
							
							This is an editorial change in the Intl.DurationFormat proposal. See:
fa2b3d0 
							
						 
						
							2022-12-15 09:40:09 +00:00