blob: f874db89f617f74d45b6f3d3e5cdf51f834356a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2018 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-Intl.RelativeTimeFormat
description: >
Intl.RelativeTimeFormat instance object is created from %RelativeTimeFormatPrototype%.
info: |
Intl.RelativeTimeFormat ([ locales [ , options ]])
2. Let relativeTimeFormat be ! OrdinaryCreateFromConstructor(NewTarget, "%RelativeTimeFormatPrototype%").
features: [Intl.RelativeTimeFormat]
---*/
const value = new Intl.RelativeTimeFormat();
assert.sameValue(
Object.getPrototypeOf(value),
Intl.RelativeTimeFormat.prototype,
"Object.getPrototypeOf(value) equals the value of Intl.RelativeTimeFormat.prototype"
);
reportCompare(0, 0);
|