/* -*- tab-width: 2; 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. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** * File Name: RegExp/properties-002.js * ECMA Section: 15.7.6.js * Description: Based on ECMA 2 Draft 7 February 1999 * * Author: christine@netscape.com * Date: 19 February 1999
*/ //----------------------------------------------------------------------------- var SECTION = "RegExp/properties-002.js"; var TITLE = "Properties of RegExp Instances"; var BUGNUMBER ="124339";
/* * Brendan: "need to test cases Math.pow(2,32) and greater to see * whether they round-trip." Reason: thanks to the work done in * http://bugzilla.mozilla.org/show_bug.cgi?id=124339, lastIndex * is now stored as a double instead of a uint32_t (unsigned integer). * * Note 2^32 -1 is the upper bound for uint32's, but doubles can go * all the way up to Number.MAX_VALUE. So that's why we need cases * between those two numbers. *
*/
re_6 = /\B/;
re_6.lastIndex = Math.pow(2,32);
AddRegExpCases( re_6, "\\B", false, false, false, Math.pow(2,32) );
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.