S15.10.4.1_A7_T2.js (610B)
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 assert.sameValue( 16 RegExp.prototype.isPrototypeOf(__re), 17 true, 18 'RegExp.prototype.isPrototypeOf(new RegExp()) must return true' 19 ); 20 21 reportCompare(0, 0);