summaryrefslogtreecommitdiff
path: root/test/built-ins/Date/prototype/S15.9.4.1_A1_T1.js
blob: 70304c2674fba9eae00af4db6ea282c00583329c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: >
    The Date property "prototype" has { DontEnum, DontDelete, ReadOnly }
    attributes
es5id: 15.9.4.1_A1_T1
description: Checking ReadOnly attribute
---*/

x = Date.prototype;
Date.prototype = 1;
if (Date.prototype !== x) {
  $ERROR('#1: The Date.prototype has the attribute ReadOnly');
}