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, {ReadOnly} is not used michael@0: * michael@0: * @path ch12/12.2/S12.2_A11.js michael@0: * @description Changing variable value using property attributes michael@0: */ michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#1 michael@0: this['__declared__var'] = "baloon"; michael@0: if (this['__declared__var'] !== "baloon") { michael@0: $ERROR('#1: this[\'__declared__var\'] === "baloon". Actual: this[\'__declared__var\'] ==='+ this['__declared__var'] ); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: //CHECK#2 michael@0: if (__declared__var !== "baloon") { michael@0: $ERROR('#2: __declared__var === "baloon". Actual: __declared__var ==='+ __declared__var ); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: var __declared__var; michael@0: