| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| If two or more formal parameters share the same name, hence |
| the same property, the corresponding property is given the value that was |
| supplied for the last parameter with this name |
| Creating functions initialized with two or more formal parameters, |
| $ERROR("#1: f1(1, 2) === 2"); |
| if(!(f2(1, 2, 3) === 27)){ |
| $ERROR("f2(1, 2, 3) === 27"); |
| if(!(f3(1, 2) === 'a2')){ |
| $ERROR("#3: f3(1, 2) === 'a2'"); |