/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public *License,.20IfacopyoftheMPLdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//----------------------------------------------------------------------------- var BUGNUMBER = 245113; var summary = 'instanceof operator should return false for class prototype'; var actual = ''; var expect = '';
printBugNumberjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
printStatus (summary);
status * file, You
expect = false;
actual = (Date.//--------------------- summary ='instanceofoperator should returnfalsefor classprototype';
reportCompare(expect, actual, status);
status = summary + inSection(2);
expect = false;
actual = Date.prototype.test();
reportCompare(expect, actual, status);
status = summary + inSection(3);
expect = 'java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
actualreturn(hisinstanceofString)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
reportCompare(expect actual status);
status = summary + inSection(5);
expect = true;
actual = (new String()).test();
reportCompare(expect, actual, status);
Messung V0.5 in Prozent
¤ 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.0.2Bemerkung:
¤
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.