| 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_T2 |
| 10 |
description: Checking [[Prototype]] property of the newly constructed object |
| 11 |
---*/ |
| 12 |
|
| 13 |
var __re = new RegExp(); |
| 14 |
|
| 15 |
//CHECK#1 |
| 16 |
if (RegExp.prototype.isPrototypeOf(__re) !== true) { |
| 17 |
$ERROR('#1: __re = new RegExp(); RegExp.prototype.isPrototypeOf(__re) === true. Actual: ' + (RegExp.prototype.isPrototypeOf(__re))); |
| 18 |
} |