| 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: 11.1.3 |
| 6 |
description: > |
| 7 |
Tests that objects constructed by Intl.NumberFormat have the |
| 8 |
specified internal properties. |
| 9 |
author: Norbert Lindenberg |
| 10 |
---*/ |
| 11 |
|
| 12 |
var obj = new Intl.NumberFormat(); |
| 13 |
|
| 14 |
var actualPrototype = Object.getPrototypeOf(obj); |
| 15 |
assert.sameValue(actualPrototype, Intl.NumberFormat.prototype, "Prototype of object constructed by Intl.NumberFormat isn't Intl.NumberFormat.prototype."); |
| 16 |
|
| 17 |
assert(Object.isExtensible(obj), "Object constructed by Intl.NumberFormat must be extensible."); |