michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * When using property attributes, {DontEnum} is not used michael@0: * michael@0: * @path ch12/12.2/S12.2_A9.js michael@0: * @description Enumerating property attributes of "this" and then searching for the declared variable michael@0: */ michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: for (__prop in this){ michael@0: if (__prop === "__declared__var") michael@0: enumed=true; michael@0: } michael@0: if (!(enumed)) { michael@0: $ERROR('#1: When using property attributes, {DontEnum} not used'); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: var __declared__var; michael@0: