]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/LexicalConventions/regexp-literals-001.js
2 * File Name: LexicalConventions/regexp-literals-001.js
7 * Author: christine@netscape.com
10 var SECTION
= "LexicalConventions/regexp-literals-001.js";
11 var VERSION
= "ECMA_2";
12 var TITLE
= "Regular Expression Literals";
16 // Regular Expression Literals may not be empty; // should be regarded
17 // as a comment, not a RegExp literal.
24 "// should be a comment, not a regular expression literal",
29 "// typeof object should be type of object declared on following line",
31 (typeof s
) == "string" ? "passed" : "failed" );
34 "// should not return an object of the type RegExp",
36 (typeof s
== "object") ? "failed" : "passed" );