1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 //-----------------------------------------------------------------------------
7 var BUGNUMBER = 257751;
8 var summary = 'RegExp Syntax Errors should have lineNumber and fileName';
12 printBugNumber(BUGNUMBER);
13 printStatus (summary);
18 status = summary + ' ' + inSection(1) + ' RegExp("\\\\") ';
26 if (e.fileName && e.lineNumber)
35 reportCompare(expect, actual, status);
37 status = summary + ' ' + inSection(2) + ' RegExp(")") ';
45 if (e.fileName && e.lineNumber)
54 reportCompare(expect, actual, status);
56 status = summary + ' ' + inSection(3) + ' /\\\\/ ';
64 if (e.fileName && e.lineNumber)
73 reportCompare(expect, actual, status);
75 status = summary + ' ' + inSection(4) + ' /)/ ';
83 if (e.fileName && e.lineNumber)
92 reportCompare(expect, actual, status);