// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * The [[Class]] property of the newly constructed object is set to "RegExp" * * @path ch15/15.10/15.10.4/S15.10.4.1_A6_T1.js * @description Checking [[Class]] property of the newly constructed object */ __re = new RegExp; __re.toString = Object.prototype.toString; //CHECK#1 if (__re.toString() !== "[object "+"RegExp"+"]") { $ERROR('#1: __re = new RegExp; __re.toString = Object.prototype.toString; __re.toString() === "[object "+"RegExp"+"]". Actual: ' + (__re.toString())); }