2021-06-29 17:45:42 +02:00
|
|
|
// 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.instant
|
2021-07-20 21:06:31 +02:00
|
|
|
description: Temporal.Now.instant does not implement [[Construct]]
|
2021-06-29 17:45:42 +02:00
|
|
|
includes: [isConstructor.js]
|
2021-08-06 00:44:17 +02:00
|
|
|
features: [Reflect.construct, Temporal, arrow-function]
|
2021-06-29 17:45:42 +02:00
|
|
|
---*/
|
|
|
|
|
2021-07-20 21:06:31 +02:00
|
|
|
assert.sameValue(isConstructor(Temporal.Now.instant), false, 'isConstructor(Temporal.Now.instant) must return false');
|
2021-06-29 17:45:42 +02:00
|
|
|
|
|
|
|
assert.throws(TypeError, () => {
|
2021-07-20 21:06:31 +02:00
|
|
|
new Temporal.Now.instant();
|
2021-08-10 19:40:04 +02:00
|
|
|
}, 'new Temporal.Now.instant() throws a TypeError exception');
|