|
1 // Copyright 2012 Mozilla Corporation. All rights reserved. |
|
2 // This code is governed by the license found in the LICENSE file. |
|
3 |
|
4 /** |
|
5 * @description Tests that Intl.NumberFormat.prototype has the required attributes. |
|
6 * @author Norbert Lindenberg |
|
7 */ |
|
8 |
|
9 var desc = Object.getOwnPropertyDescriptor(Intl.NumberFormat, "prototype"); |
|
10 if (desc === undefined) { |
|
11 $ERROR("Intl.NumberFormat.prototype is not defined."); |
|
12 } |
|
13 if (desc.writable) { |
|
14 $ERROR("Intl.NumberFormat.prototype must not be writable."); |
|
15 } |
|
16 if (desc.enumerable) { |
|
17 $ERROR("Intl.NumberFormat.prototype must not be enumerable."); |
|
18 } |
|
19 if (desc.configurable) { |
|
20 $ERROR("Intl.NumberFormat.prototype must not be configurable."); |
|
21 } |
|
22 |