mirror of https://github.com/tc39/test262.git
17 lines
600 B
JavaScript
17 lines
600 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
info: The [[Class]] property of the newly constructed object is set to "RegExp"
|
|
es5id: 15.10.4.1_A6_T1
|
|
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()));
|
|
}
|