mirror of
https://github.com/tc39/test262.git
synced 2025-11-10 16:59:49 +01:00
17 lines
583 B
JavaScript
17 lines
583 B
JavaScript
// 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: Checks handling of a null options argument to the RelativeTimeFormat constructor.
|
|
info: |
|
|
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
|
|
5. Else
|
|
a. Let options be ? ToObject(options).
|
|
features: [Intl.RelativeTimeFormat]
|
|
---*/
|
|
|
|
assert.sameValue(typeof Intl.RelativeTimeFormat, "function");
|
|
|
|
assert.throws(TypeError, function() { new Intl.RelativeTimeFormat([], null) })
|