blob: 18dae83a165a902f88d64513d2aa360753c6ae5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2016 Leonardo Balter. All rights reserved.
// This code is governed by the license found in the LICENSE file.
/*---
description: >
Throws a TypeError if this is not a DateTimeFormat object
---*/
var formatToParts = Intl.DateTimeFormat.prototype.formatToParts;
assert.throws(TypeError, function() {
formatToParts.call({});
}, "{}");
assert.throws(TypeError, function() {
formatToParts.call(new Date());
}, "new Date()");
reportCompare(0, 0);
|