js/src/tests/test262/intl402/ch10/10.2/10.2.1.js

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:9aa6c747ac79
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.Collator.prototype has the required attributes.
6 * @author Norbert Lindenberg
7 */
8
9 var desc = Object.getOwnPropertyDescriptor(Intl.Collator, "prototype");
10 if (desc === undefined) {
11 $ERROR("Intl.Collator.prototype is not defined.");
12 }
13 if (desc.writable) {
14 $ERROR("Intl.Collator.prototype must not be writable.");
15 }
16 if (desc.enumerable) {
17 $ERROR("Intl.Collator.prototype must not be enumerable.");
18 }
19 if (desc.configurable) {
20 $ERROR("Intl.Collator.prototype must not be configurable.");
21 }
22

mercurial