/* -*- 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/. */
/* * Date: 26 November 2000 * *SUMMARY: Testing numeric literals that begin with 0. *This test arose from Bugzilla bug 49233. *The best explanation is from jsscan.c: * * "We permit 08 and 09 as decimal numbers, which makes * our behaviour a superset of the ECMA numeric grammar. * We might not always be so permissive, so we warn about it." * *Thus an expression 010 will evaluate, as always, as an octal (to 8). *However, 018 will evaluate as a decimal, to 18. Even though the *user began the expression as an octal, he later used a non-octal *digit. We forgive this and assume he intended a decimal. If the *JavaScript "strict" option is set though, we will give a warning.
*/
//------------------------------------------------------------------------------------------------- var BUGNUMBER = '49233'; var summary = 'Testing numeric literals that begin with 0'; var statprefix = 'Testing '; var quote = "'"; var asString = new Array(); var actual = new Array(); var expect = new Array();
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.