1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
7 Object.create - [[Set]] is set as undefined if it is absent in
8 accessor descriptor of one property in 'Properties' (8.12.9 step
12 var newObj = Object.create({}, {
15 return "verifyCreate";
22 var desc = Object.getOwnPropertyDescriptor(newObj, "prop");
23 var verifySet = desc.hasOwnProperty("set") && typeof desc.set === "undefined";
25 var verifyGet = false;
26 if (newObj.prop === "verifyCreate") {
30 var verifyEnumerable = false;
31 for (var p in newObj) {
33 verifyEnumerable = true;
37 var verifyConfigurable = false;
38 var hasProperty = newObj.hasOwnProperty("prop");
40 verifyConfigurable = !newObj.hasOwnProperty("prop") && hasProperty;
42 assert(verifySet, 'verifySet !== true');
43 assert(verifyGet, 'verifyGet !== true');
44 assert(verifyEnumerable, 'verifyEnumerable !== true');
45 assert(verifyConfigurable, 'verifyConfigurable !== true');