Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/S15.10.4.1_A6_T1.js

raw
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: The [[Class]] property of the newly constructed object is set to "RegExp"
6 es5id: 15.10.4.1_A6_T1
7 description: Checking [[Class]] property of the newly constructed object
8 ---*/
9
10 var __re = new RegExp;
11 __re.toString = Object.prototype.toString;
12
13 assert.sameValue(__re.toString(), "[object "+"RegExp"+"]", '__re.toString() must return "[object "+"RegExp"+"]"');
14
15 reportCompare(0, 0);