mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 05:18:32 +02:00
20 lines
888 B
JavaScript
20 lines
888 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* Values of the List type are simply ordered sequences of values
|
|
*
|
|
* @path ch08/8.8/S8.8_A2_T3.js
|
|
* @description Call function, that concatenate all it`s arguments
|
|
*/
|
|
|
|
function __mFunc(){var __accum=""; for (var i = 0; i < arguments.length; ++i){__accum += arguments[i]};return __accum;};
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//CHECK#1
|
|
if (__mFunc("A","B","C","D","E","F") !== "ABCDEF"){
|
|
$ERROR('#1: function __mFunc(){var __accum=""; for (var i = 0; i < arguments.length; ++i){__accum += arguments[i]};return __accum;}; __mFunc("A","B","C","D","E","F") === "ABCDEF". Actual: ' + (__mFunc("A","B","C","D","E","F")));
|
|
}
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|