mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
LibJS: Replace a couple of TODO()'s in Temporal with InternalError
This helps us to distinguish between crashes because of incomplete code paths and crashes because of genuine bugs more easily when running test262.
This commit is contained in:
parent
dd1a808f7e
commit
0dae7c9420
2 changed files with 6 additions and 6 deletions
|
@ -121,7 +121,7 @@ ThrowCompletionOr<PlainMonthDay*> to_temporal_month_day(GlobalObject& global_obj
|
|||
// FIXME: The spec has an issue in this part which makes it unimplementable, namely:
|
||||
// - ParseTemporalMonthDayString doesn't return a [[Calendar]] field, which is required in step 7.
|
||||
// This is a known issue, see https://github.com/tc39/proposal-temporal/issues/1502
|
||||
TODO();
|
||||
return vm.throw_completion<InternalError>(global_object, ErrorType::NotImplemented, "ToTemporalMonthDay");
|
||||
}
|
||||
|
||||
// 10.5.2 CreateTemporalMonthDay ( isoMonth, isoDay, calendar, referenceISOYear [ , newTarget ] ), https://tc39.es/proposal-temporal/#sec-temporal-createtemporalmonthday
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue