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.defineProperty - 'O' is an Array, 'name' is generic own
8 accessor property of 'O', and 'desc' is accessor descriptor, test
9 TypeError is thrown when updating the [[Set]] attribute value of
10 'name' (15.4.5.1 step 5)
11 includes: [propertyHelper.js]
17 function setFunc(value) {
18 arrObj.setVerifyHelpProp = value;
20 Object.defineProperty(arrObj, "property", {
24 Object.defineProperty(arrObj, "property", {
27 throw new Test262Error("Expected an exception.");
29 verifyWritable(arrObj, "property", "setVerifyHelpProp");
31 if (!(e instanceof TypeError)) {
32 throw new Test262Error("Expected TypeError, got " + e);
36 verifyProperty(arrObj, "property", {