| 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 |
//CHECK#1 |
| 17 |
if (RegExp.indicator !== 1) { |
| 18 |
$ERROR('#1: Function.prototype.indicator = 1; RegExp.indicator === 1. Actual: ' + (RegExp.indicator)); |
| 19 |
} |