mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 05:18:32 +02:00
20 lines
626 B
JavaScript
20 lines
626 B
JavaScript
// 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()));
|
|
}
|
|
|
|
|