15.2.3.6-4-586.js (655B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 es5id: 15.2.3.6-4-586 6 description: > 7 ES5 Attributes - Fail to update value of property into of 8 [[Proptotype]] internal property (JSON) 9 includes: [propertyHelper.js] 10 ---*/ 11 12 var data = "data"; 13 14 Object.defineProperty(Object.prototype, "prop", { 15 get: function() { 16 return data; 17 }, 18 enumerable: false, 19 configurable: true 20 }); 21 verifyNotWritable(JSON, "prop", "nocheck"); 22 23 assert(!JSON.hasOwnProperty("prop")); 24 assert.sameValue(JSON.prop, "data"); 25 assert.sameValue(data, "data"); 26 27 reportCompare(0, 0);