15.2.3.6-4-399.js (516B)
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-399 6 description: > 7 ES5 Attributes - [[Value]] attribute of data property is the 8 global object 9 ---*/ 10 11 var obj = {}; 12 13 Object.defineProperty(obj, "prop", { 14 value: this 15 }); 16 17 var desc = Object.getOwnPropertyDescriptor(obj, "prop"); 18 19 assert.sameValue(obj.prop, this, 'obj.prop'); 20 assert.sameValue(desc.value, this, 'desc.value'); 21 22 reportCompare(0, 0);