summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/prototype/global/15.10.7.2-2.js
blob: c615203c4492a6eb8f9787c2d1fde6399882e26f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.10.7.2-2
description: >
    RegExp.prototype.global is an accessor property whose set accessor
    function is undefined
---*/

  var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global');
  

assert.sameValue(typeof desc.get, 'function', 'typeof desc.get');
assert.sameValue(desc.set, undefined, 'desc.set');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
assert.sameValue(desc.configurable, true, 'desc.configurable');

reportCompare(0, 0);