/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* * *Date:23October2003 *SUMMARY:Unescaped,unbalancedparensinaregexpshouldcauseSyntaxError. * *Thesamewouldalsobetrueforunescaped,unbalancedbracketsorbraces *ifwefollowedtheECMA-262Ed.3speconthis.Butitwasdecidedfor *backwardcompatibilityreasonstofollowPerl5,whichpermits * *1.anunescaped,unbalancedrightbracket] *2.anunescaped,unbalancedleftbrace{ *3.anunescaped,unbalancedrightbrace} * *Ifanyoftheseshouldoccur,Perltreatseachasaliteral *character.Thereforewepermitallthreeofthesecases,even *thoughnotECMA-compliant.NotePerlerrorsonanunescaped, *unbalancedleftbracket;sowillwe. * *Seehttp://bugzilla.mozilla.org/show_bug.cgi?id=223273 *
*/ //----------------------------------------------------------------------------- var UBound = 0; var BUGNUMBER = 223273; var summary = 'Unescaped, unbalanced parens in regexp should be a SyntaxError'; var TEST_PASSED = 'SyntaxError'; var TEST_FAILED = 'Generated an error, but NOT a SyntaxError!'; var TEST_FAILED_BADLY = 'Did not generate ANY error!!!'; var CHECK_PASSED = 'Should not generate an error'; var CHECK_FAILED = 'Generated an error!'; var status = ''; var statusitems = []; var actual = ''; var actualvalues = []; var expect= ''; var expectedvalues = [];
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.