summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A4.js
blob: fb25477820feb19922d5ce1f82ca67bb82079d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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 DontEnum
esid: sec-boolean.prototype
description: Checking if enumerating the Boolean.prototype property fails
---*/

for (x in Boolean) {
  assert.notSameValue(x, "prototype", 'The value of x is not "prototype"');
}

assert(
  !Boolean.propertyIsEnumerable('prototype'),
  'The value of !Boolean.propertyIsEnumerable(\'prototype\') is expected to be true'
);

reportCompare(0, 0);