mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
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:
parent
a93fe76f52
commit
d2d84950c3
@ -28,8 +28,7 @@ offsetOptions.forEach((offsetOption) => {
|
|||||||
assert.throws(
|
assert.throws(
|
||||||
typeof(offset) === 'string' || (typeof offset === "object" && offset !== null) ? RangeError : TypeError,
|
typeof(offset) === 'string' || (typeof offset === "object" && offset !== null) ? RangeError : TypeError,
|
||||||
() => Temporal.ZonedDateTime.from(arg, { offset: offsetOption }),
|
() => Temporal.ZonedDateTime.from(arg, { offset: offsetOption }),
|
||||||
typeof(offset) === 'symbol' ? "symbol is not a valid offset string"
|
`"${String(offset)} is not a valid offset string (with offset option ${offsetOption})`
|
||||||
: `"${offset} is not a valid offset string (with offset option ${offsetOption})`
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user