aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/intl402/ch12/12.2/12.2.1.js
blob: 4ec28c5d3a2e0b32ade2b652dc5b5a5b9a8f2d19 (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
26
// 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.DateTimeFormat prototype object exists and
 * is not writable, enumerable, or configurable.
 * @author: Roozbeh Pournader
 */

var desc;

if (!Intl.DateTimeFormat.hasOwnProperty('prototype')) {
    $ERROR('Intl.DateTimeFormat has no prototype property');
}

desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat, 'prototype');
if (desc.writable === true) {
    $ERROR('Intl.DateTimeFormat.prototype is writable.');
}
if (desc.enumerable === true) {
    $ERROR('Intl.DateTimeFormat.prototype is enumerable.');
}
if (desc.configurable === true) {
    $ERROR('Intl.DateTimeFormat.prototype is configurable.');
}