S12.2_A11.js (1041B)
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 info: When using property attributes, {ReadOnly} is not used 6 es5id: 12.2_A11 7 description: Changing variable value using property attributes 8 ---*/ 9 10 ////////////////////////////////////////////////////////////////////////////// 11 //CHECK#1 12 this['__declared__var'] = "baloon"; 13 if (this['__declared__var'] !== "baloon") { 14 throw new Test262Error('#1: this[\'__declared__var\'] === "baloon". Actual: this[\'__declared__var\'] ==='+ this['__declared__var'] ); 15 } 16 // 17 ////////////////////////////////////////////////////////////////////////////// 18 19 ////////////////////////////////////////////////////////////////////////////// 20 //CHECK#2 21 if (__declared__var !== "baloon") { 22 throw new Test262Error('#2: __declared__var === "baloon". Actual: __declared__var ==='+ __declared__var ); 23 } 24 // 25 ////////////////////////////////////////////////////////////////////////////// 26 27 var __declared__var; 28 29 reportCompare(0, 0);