blob: 630536cefb1f9f6afd46b6f0db331f896b9e1314 [file] [log] [blame]
// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.now.zoneddatetime
description: Forwards error thrown by retrieving value of "timeZone" property
features: [Temporal]
---*/
var timeZone = {
get timeZone() {
throw new Test262Error();
},
};
assert.throws(Test262Error, function() {
Temporal.Now.zonedDateTime("iso8601", timeZone);
}, 'Temporal.Now.zonedDateTime("iso8601", timeZone) throws a Test262Error exception');