Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/RegExp/S15.10.4.1_A7_T1.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 [[Prototype]] property of the newly constructed object is set to the
7 original RegExp prototype object, the one that is the initial value of
8 RegExp.prototype
9 es5id: 15.10.4.1_A7_T1
10 description: >
11 Add new property to [[Prototype]] of REgExp and check this
12 property of the newly constructed object
13 ---*/
14
15 var __re = new RegExp;
16 RegExp.prototype.indicator = 1;
17
18 //CHECK#1
19 if (__re.indicator !== 1) {
20 $ERROR('#1: __re = new RegExp; RegExp.prototype.indicator = 1; __re.indicator === 1. Actual: ' + (__re.indicator));
21 }