2 * File Name: RegExp/function-001.js
3 * ECMA Section: 15.7.2.1
4 * Description: Based on ECMA 2 Draft 7 February 1999
6 * Author: christine@netscape.com
7 * Date: 19 February 1999
9 var SECTION = "RegExp/function-001";
10 var VERSION = "ECMA_2";
11 var TITLE = "RegExp( pattern, flags )";
16 * for each test case, verify:
17 * - verify that [[Class]] property is RegExp
18 * - prototype property should be set to RegExp.prototype
19 * - source is set to the empty string
20 * - global property is set to false
21 * - ignoreCase property is set to false
22 * - multiline property is set to false
23 * - lastIndex property is set to 0
26 RegExp.prototype.getClassProperty = Object.prototype.toString;
27 var re = new RegExp();
30 "new RegExp().__proto__",
36 "RegExp.prototype.getClassProperty = Object.prototype.toString; " +
37 "(new RegExp()).getClassProperty()",
39 re.getClassProperty() );
42 "(new RegExp()).source",
47 "(new RegExp()).global",
52 "(new RegExp()).ignoreCase",
57 "(new RegExp()).multiline",
62 "(new RegExp()).lastIndex",