text: // Copyright (C) 2021 Igalia, S.L. All rights reserved.
  // This code is governed by the BSD license found in the LICENSE file.
  
  /*---
  esid: sec-temporal.zoneddatetime.prototype.with
  description: Verify that undefined options are handled correctly.
  features: [BigInt, Temporal]
  ---*/
  
  const datetime = new Temporal.ZonedDateTime(949494896_987_654_321n, "UTC");
  const fields = { day: 31 };
  
  const explicit = datetime.with(fields, undefined);
  assert.sameValue(explicit.month, 2, "default overflow is constrain");
  assert.sameValue(explicit.day, 29, "default overflow is constrain");
  
  const implicit = datetime.with(fields);
  assert.sameValue(implicit.month, 2, "default overflow is constrain");
  assert.sameValue(implicit.day, 29, "default overflow is constrain");
  