summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Temporal/PlainDateTime/prototype/constructor.js
blob: f9ba1858d68b46615f043d9e6062f7ed0fcba23d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-temporal.plaindatetime.prototype.constructor
description: Test for Temporal.PlainDateTime.prototype.constructor.
info: The initial value of Temporal.PlainDateTime.prototype.constructor is %Temporal.PlainDateTime%.
includes: [propertyHelper.js]
features: [Temporal]
---*/

verifyProperty(Temporal.PlainDateTime.prototype, "constructor", {
  value: Temporal.PlainDateTime,
  writable: true,
  enumerable: false,
  configurable: true,
});

reportCompare(0, 0);