1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 es5id: 15.2.3.6-4-298-1
7 Object.defineProperty - 'O' is an Arguments object of a function
8 that has formal parameters, 'name' is own accessor property of 'O'
9 which is also defined in [[ParameterMap]] of 'O', test TypeError
10 is thrown when updating the [[Set]] attribute value of 'name'
11 which is defined as non-configurable (10.6 [[DefineOwnProperty]]
13 includes: [propertyHelper.js]
20 Object.defineProperty(arguments, "0", {
27 function setFunc(value) {
28 this.setVerifyHelpProp = value;
31 Object.defineProperty(arguments, "0", {
34 throw new Test262Error("Expected an exception.");
37 throw new Test262Error('Expected a === 0, actually ' + a);
40 verifyEqualTo(arguments, "0", getFunc());
42 verifyNotEnumerable(arguments, "0");
44 verifyNotConfigurable(arguments, "0");
46 if (!(e instanceof TypeError)) {
47 throw new Test262Error("Expected TypeError, got " + e);