| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: Arguments property of activation object contains real params to be passed |
| Creating a function with no parameters and using arguments.length |
| property in order to perform the test |
| ////////////////////////////////////////////////////////////////////////////// |
| $ERROR('#1: __func(\'A\') === 1. Actual: __func(\'A\') ==='+__func('A')); |
| ////////////////////////////////////////////////////////////////////////////// |
| ////////////////////////////////////////////////////////////////////////////// |
| if (__func('A', 'B', 1, 2,__func) !== 5) { |
| $ERROR('#2: __func(\'A\', \'B\', 1, 2,__func) === 5. Actual: __func(\'A\', \'B\', 1, 2,__func) ==='+__func('A', 'B', 1, 2,__func)); |
| ////////////////////////////////////////////////////////////////////////////// |
| ////////////////////////////////////////////////////////////////////////////// |
| $ERROR('#3: __func() === 0. Actual: __func() ==='+__func()); |
| ////////////////////////////////////////////////////////////////////////////// |