mirror of https://github.com/tc39/test262.git
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(
|
||||
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})`
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue