| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: function must be evaluated inside the expression |
| Defining function body with "return arguments[0] +"-"+ |
| var x = (function __func(){return arguments[0] +"-"+ arguments[1]})("Obi","Wan"); |
| ////////////////////////////////////////////////////////////////////////////// |
| $ERROR('#1: x === "Obi-Wan". Actual: x ==='+x); |
| ////////////////////////////////////////////////////////////////////////////// |
| ////////////////////////////////////////////////////////////////////////////// |
| if (typeof __func !== 'undefined') { |
| $ERROR('#2: typeof __func === \'undefined\'. Actual: typeof __func ==='+typeof __func); |
| ////////////////////////////////////////////////////////////////////////////// |