summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A2.js
blob: 712c4846ebd001afdb509d359289326e79efaa81 (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: Boolean.prototype has the attribute ReadOnly
esid: sec-boolean.prototype
description: Checking if varying the Boolean.prototype property fails
includes: [propertyHelper.js]
---*/

// CHECK#1
var x = Boolean.prototype;
verifyNotWritable(Boolean, "prototype", null, 1);
assert.sameValue(Boolean.prototype, x, 'The value of Boolean.prototype is expected to equal the value of x');

reportCompare(0, 0);