2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: When using property attributes, {DontEnum} is not used
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 12.2_A9
|
2014-07-22 01:09:02 +02:00
|
|
|
description: >
|
|
|
|
Enumerating property attributes of "this" and then searching for
|
|
|
|
the declared variable
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
2015-03-23 17:34:52 +01:00
|
|
|
var enumed;
|
|
|
|
|
2011-09-07 08:35:18 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//CHECK#1
|
2014-08-05 17:38:52 +02:00
|
|
|
for (var __prop in this){
|
2011-09-07 08:35:18 +02:00
|
|
|
if (__prop === "__declared__var")
|
|
|
|
enumed=true;
|
|
|
|
}
|
|
|
|
if (!(enumed)) {
|
|
|
|
$ERROR('#1: When using property attributes, {DontEnum} not used');
|
|
|
|
}
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
var __declared__var;
|