| 1 |
// Copyright 2012 Mozilla Corporation. All rights reserved. |
| 2 |
// This code is governed by the license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es5id: 12.1_L15 |
| 6 |
description: > |
| 7 |
Tests that Intl.DateTimeFormat meets the requirements for |
| 8 |
built-in objects defined by the introduction of chapter 17 of the |
| 9 |
ECMAScript Language Specification. |
| 10 |
author: Norbert Lindenberg |
| 11 |
---*/ |
| 12 |
|
| 13 |
assert.sameValue(Object.prototype.toString.call(Intl.DateTimeFormat), "[object Function]", |
| 14 |
"The [[Class]] internal property of a built-in function must be " + |
| 15 |
"\"Function\"."); |
| 16 |
|
| 17 |
assert(Object.isExtensible(Intl.DateTimeFormat), "Built-in objects must be extensible."); |
| 18 |
|
| 19 |
assert.sameValue(Object.getPrototypeOf(Intl.DateTimeFormat), Function.prototype); |