|
1 // Copyright 2009 the Sputnik authors. All rights reserved. |
|
2 // This code is governed by the BSD license found in the LICENSE file. |
|
3 |
|
4 /** |
|
5 * When using property attributes, {DontEnum} is not used |
|
6 * |
|
7 * @path ch12/12.2/S12.2_A9.js |
|
8 * @description Enumerating property attributes of "this" and then searching for the declared variable |
|
9 */ |
|
10 |
|
11 ////////////////////////////////////////////////////////////////////////////// |
|
12 //CHECK#1 |
|
13 for (__prop in this){ |
|
14 if (__prop === "__declared__var") |
|
15 enumed=true; |
|
16 } |
|
17 if (!(enumed)) { |
|
18 $ERROR('#1: When using property attributes, {DontEnum} not used'); |
|
19 } |
|
20 // |
|
21 ////////////////////////////////////////////////////////////////////////////// |
|
22 |
|
23 var __declared__var; |
|
24 |