| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: Function's scope chain is started when it is declared |
| description: Function is declared in the object scope as a variable |
| ////////////////////////////////////////////////////////////////////////////// |
| if (__obj.hasOwnProperty('__func')) { |
| $ERROR('#1: __obj.hasOwnProperty(\'__func\') === false'); |
| ////////////////////////////////////////////////////////////////////////////// |
| ///////////////////////////////////// ///////////////////////////////////////// |
| if (!(this.hasOwnProperty('__func'))) { |
| $ERROR('#2: this.hasOwnProperty(\'__func\') === true'); |
| ////////////////////////////////////////////////////////////////////////////// |
| ////////////////////////////////////////////////////////////////////////////// |
| $ERROR('#3: (__func in __obj) === false'); |
| ////////////////////////////////////////////////////////////////////////////// |
| ////////////////////////////////////////////////////////////////////////////// |
| if (this.__func === undefined) { |
| $ERROR('#4: this.__func !== undefined'); |
| ////////////////////////////////////////////////////////////////////////////// |