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 Arguments object, 'P' is own
8 data property of 'O', test TypeError is thrown when updating the
9 [[Enumerable]] attribute value of 'P' which is not configurable
10 (10.6 [[DefineOwnProperty]] step 4)
11 includes: [propertyHelper.js]
15 Object.defineProperty(arguments, "genericProperty", {
20 Object.defineProperty(arguments, "genericProperty", {
23 throw new Test262Error("Expected an exception.");
25 verifyEqualTo(arguments, "genericProperty", undefined);
27 verifyNotWritable(arguments, "genericProperty");
29 verifyEnumerable(arguments, "genericProperty");
31 verifyNotConfigurable(arguments, "genericProperty");
33 if (!(e instanceof TypeError)) {
34 throw new Test262Error("Expected TypeError, got " + e);