| 1 |
// Copyright 2012 Mozilla Corporation. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es5id: 12.1.3 |
| 6 |
description: > |
| 7 |
Tests that objects constructed by Intl.DateTimeFormat have the |
| 8 |
specified internal properties. |
| 9 |
author: Norbert Lindenberg |
| 10 |
---*/ |
| 11 |
|
| 12 |
var obj = new Intl.DateTimeFormat(); |
| 13 |
|
| 14 |
var actualPrototype = Object.getPrototypeOf(obj); |
| 15 |
assert.sameValue(actualPrototype, Intl.DateTimeFormat.prototype, "Prototype of object constructed by Intl.DateTimeFormat isn't Intl.DateTimeFormat.prototype."); |
| 16 |
|
| 17 |
assert(Object.isExtensible(obj), "Object constructed by Intl.DateTimeFormat must be extensible."); |