michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: /** michael@0: * File Name: LexicalConventions/regexp-literals-002.js michael@0: * ECMA Section: 7.8.5 michael@0: * Description: Based on ECMA 2 Draft 8 October 1999 michael@0: * michael@0: * Author: christine@netscape.com michael@0: * Date: 19 February 1999 michael@0: */ michael@0: var SECTION = "LexicalConventions/regexp-literals-002.js"; michael@0: var VERSION = "ECMA_2"; michael@0: var TITLE = "Regular Expression Literals"; michael@0: michael@0: startTest(); michael@0: michael@0: // A regular expression literal represents an object of type RegExp. michael@0: michael@0: AddTestCase( michael@0: "// A regular expression literal represents an object of type RegExp.", michael@0: "true", michael@0: (/x*/ instanceof RegExp).toString() ); michael@0: michael@0: test();