initial import
[vuplus_webkit] / Source / JavaScriptCore / tests / mozilla / ecma_2 / LexicalConventions / regexp-literals-002.js
1 /**
2  *  File Name:          LexicalConventions/regexp-literals-002.js
3  *  ECMA Section:       7.8.5
4  *  Description:        Based on ECMA 2 Draft 8 October 1999
5  *
6  *  Author:             christine@netscape.com
7  *  Date:               19 February 1999
8  */
9     var SECTION = "LexicalConventions/regexp-literals-002.js";
10     var VERSION = "ECMA_2";
11     var TITLE   = "Regular Expression Literals";
12
13     startTest();
14
15     // A regular expression literal represents an object of type RegExp.
16
17     AddTestCase(
18         "// A regular expression literal represents an object of type RegExp.",
19         "true",
20         (/x*/ instanceof RegExp).toString() );
21
22     test();