Update test/built-ins/Temporal/ZonedDateTime/from/argument-propertybag-invalid-offset-string.js

Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
This commit is contained in:
Tim Chevalier 2024-10-30 17:01:30 -07:00 committed by Philip Chimento
parent a93fe76f52
commit d2d84950c3
1 changed files with 1 additions and 2 deletions

View File

@ -28,8 +28,7 @@ offsetOptions.forEach((offsetOption) => {
assert.throws(
typeof(offset) === 'string' || (typeof offset === "object" && offset !== null) ? RangeError : TypeError,
() => Temporal.ZonedDateTime.from(arg, { offset: offsetOption }),
typeof(offset) === 'symbol' ? "symbol is not a valid offset string"
: `"${offset} is not a valid offset string (with offset option ${offsetOption})`
`"${String(offset)} is not a valid offset string (with offset option ${offsetOption})`
);
});
});