blob: e7a0c0bc98f58a2c69a1ea0526faf50fd1a321f4 [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.plaindatetime
description: Forwards error thrown by checking presence of nested "timeZone" property
features: [Proxy, Temporal]
---*/
var timeZone = {
timeZone: new Proxy({}, {
has: function(target, property) {
if (property === 'timeZone') {
throw new Test262Error();
}
},
})
};
assert.throws(Test262Error, function() {
Temporal.Now.plainDateTime("iso8601", timeZone);
}, 'Temporal.Now.plainDateTime("iso8601", timeZone) throws a Test262Error exception');