mirror of https://github.com/tc39/test262.git
18 lines
528 B
JavaScript
18 lines
528 B
JavaScript
// 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.zoneddatetimeiso
|
|
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.zonedDateTimeISO(timeZone);
|
|
}, 'Temporal.Now.zonedDateTimeISO(timeZone) throws a Test262Error exception');
|