blob: 6583bed08b9e0fcdae73352b0f21c1bd5b2b6ecb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright 2012 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @description Tests that the Intl.Collator prototype object exists and
* is not writable, enumerable, or configurable.
*/
var desc;
if (!Intl.Collator.hasOwnProperty('prototype')) {
$ERROR('Intl.Collator has no prototype property');
}
desc = Object.getOwnPropertyDescriptor(Intl.Collator, 'prototype');
if (desc.writable === true) {
$ERROR('Intl.Collator.prototype is writable.');
}
if (desc.enumerable === true) {
$ERROR('Intl.Collator.prototype is enumerable.');
}
if (desc.configurable === true) {
$ERROR('Intl.Collator.prototype is configurable.');
}
|