Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/S15.10.5_A2_T2.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 The value of the internal [[Prototype]] property of the RegExp
7 constructor is the Function prototype object
8 es5id: 15.10.5_A2_T2
9 description: >
10 Add new property to Function.prototype and then check this
11 property of RegExp
12 ---*/
13
14 Function.prototype.indicator = 1;
15
16 assert.sameValue(RegExp.indicator, 1, 'The value of RegExp.indicator is expected to be 1');
17
18 reportCompare(0, 0);