You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let instant = require_internal_slot_temporal_instant(agent, instant.unbind(), gc.nogc())
423
+
.unbind()?
424
+
.bind(gc.nogc());
425
+
// 3. Let resolvedOptions be ? GetOptionsObject(options).
426
+
let resolved_options = get_options_object(agent, options.unbind(), gc.nogc())
427
+
.unbind()?
428
+
.scope(agent, gc.nogc());
429
+
// 4. NOTE: The following steps read options and perform independent validation in alphabetical order (GetTemporalFractionalSecondDigitsOption reads "fractionalSecondDigits" and GetRoundingModeOption reads "roundingMode").
430
+
// 5. Let digits be ? GetTemporalFractionalSecondDigitsOption(resolvedOptions).
431
+
let digits = get_temporal_fractional_second_digits_option(
432
+
agent,
433
+
resolved_options.get(agent),
434
+
gc.reborrow(),
435
+
)
436
+
.unbind()?
437
+
.bind(gc.nogc());
438
+
// 6. Let roundingMode be ? GetRoundingModeOption(resolvedOptions, trunc).
439
+
let rounding_mode = get_rounding_mode_option(
440
+
agent,
441
+
resolved_options.get(agent),
442
+
RoundingMode::Trunc,
443
+
gc.reborrow(),
444
+
)
445
+
.unbind()?
446
+
.bind(gc.nogc());
447
+
// 7. Let smallestUnit be ? GetTemporalUnitValuedOption(resolvedOptions, "smallestUnit", unset).
448
+
let smallest_unit = get_temporal_unit_valued_option(
0 commit comments