/* 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:08August2001 * *SUMMARY:Whenweinvokeafunction,theargumentsobjectshouldtake *abackseattoanylocalidentifiernamed"arguments". * *Seehttp://bugzilla.mozilla.org/show_bug.cgi?id=94506
*/ //----------------------------------------------------------------------------- var UBound = 0; var BUGNUMBER = 94506; var summary = 'Testing functions employing identifiers named "arguments"'; var status = ''; var statusitems = []; var actual = ''; var actualvalues = []; var expect= ''; var expectedvalues = []; var TYPE_OBJECT = typeofnew Object(); var arguments = 5555;
// use a parameter named "arguments" function F1(arguments)
{ return arguments;
}
// use a local variable named "arguments" function F2()
{ var arguments = 55; return arguments;
}
// same thing in a different order. CHANGES THE RESULT! function F3()
{ return arguments; var arguments = 555;
}
// use the global variable above named "arguments" function F4()
{ return arguments;
}
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.