// |reftest| skip-if(Android) -- bug - nsIDOMWindow.crypto throws NS_ERROR_NOT_IMPLEMENTED on Android /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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:30October2001 *SUMMARY:Regressiontestforbug108440 *Seehttp://bugzilla.mozilla.org/show_bug.cgi?id=108440 * *Weshouldn'tcrashtryingtoaddanarrayasanelementofitself(!) * *Brendan:"...itappearsthatArray.prototype.toStringisunsafe, *andwhat'smore,ECMA-262Edition3hasnohelpfulwordsabout *avoidingrecursivedeathonacycle."
*/ //----------------------------------------------------------------------------- var BUGNUMBER = 108440; var summary = "Shouldn't crash trying to add an array as an element of itself"; var self = this; var temp = '';
printBugNumber(BUGNUMBER);
printStatus(summary);
/* *Explicittest:
*/ var a=[];
temp = (a[a.length]=a);
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.