15.2.3.7-2-12.js (541B)
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.7-2-12 6 description: Object.defineProperties - argument 'Properties' is a Date object 7 ---*/ 8 9 var obj = {}; 10 var props = new Date(0); 11 var result = false; 12 13 Object.defineProperty(props, "prop", { 14 get: function() { 15 result = this instanceof Date; 16 return {}; 17 }, 18 enumerable: true 19 }); 20 21 Object.defineProperties(obj, props); 22 23 assert(result, 'result !== true'); 24 25 reportCompare(0, 0);