1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 * File Name: RegExp/constructor-001.js
4 * ECMA Section: 15.7.3.3
5 * Description: Based on ECMA 2 Draft 7 February 1999
7 * Author: christine@netscape.com
8 * Date: 19 February 1999
10 var SECTION = "RegExp/constructor-001";
11 var VERSION = "ECMA_2";
12 var TITLE = "new RegExp()";
17 * for each test case, verify:
18 * - verify that [[Class]] property is RegExp
19 * - prototype property should be set to RegExp.prototype
20 * - source is set to the empty string
21 * - global property is set to false
22 * - ignoreCase property is set to false
23 * - multiline property is set to false
24 * - lastIndex property is set to 0
27 RegExp.prototype.getClassProperty = Object.prototype.toString;
28 var re = new RegExp();
31 "new RegExp().__proto__",
37 "RegExp.prototype.getClassProperty = Object.prototype.toString; " +
38 "(new RegExp()).getClassProperty()",
40 re.getClassProperty() );
43 "(new RegExp()).source",
48 "(new RegExp()).global",
53 "(new RegExp()).ignoreCase",
58 "(new RegExp()).multiline",
63 "(new RegExp()).lastIndex",