mirror of https://github.com/tc39/test262.git
15 lines
516 B
JavaScript
15 lines
516 B
JavaScript
|
// 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.plaintime.from
|
||
|
description: A PlainTime object is copied, not returned directly
|
||
|
includes: [compareArray.js, temporalHelpers.js]
|
||
|
features: [Temporal]
|
||
|
---*/
|
||
|
|
||
|
const plainTime = Temporal.PlainTime.from("11:42:00");
|
||
|
const result = Temporal.PlainTime.from(plainTime);
|
||
|
assert.notSameValue(result, plainTime);
|
||
|
TemporalHelpers.assertPlainTime(result, 11, 42, 0, 0, 0, 0);
|