blob: f4bf518113e6b4e0bca580360860be367b09aae2 (
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
27
28
29
30
31
32
33
|
// Copyright 2012 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @path intl402/ch12/12.2/12.2.1.js
* @description Tests that the Intl.NumberFormat prototype object exists and
* is not writable, enumerable, or configurable.
* @author: Roozbeh Pournader
*/
var testcase = function() {
"use strict";
var desc;
if (!Intl.NumberFormat.hasOwnProperty('prototype')) {
$ERROR('Intl.NumberFormat has no prototype property');
}
desc = Object.getOwnPropertyDescriptor(Intl.NumberFormat, 'prototype');
if (desc.writable === true) {
$ERROR('Intl.NumberFormat.prototype is writable.');
}
if (desc.enumerable === true) {
$ERROR('Intl.NumberFormat.prototype is enumerable.');
}
if (desc.configurable === true) {
$ERROR('Intl.NumberFormat.prototype is configurable.');
}
return true;
}
runTestCase(testcase);
|