Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperty / 15.2.3.6-4-313-1.js
blobf51e471fec69a23b2023744d7022131e97e4d4de
1 // Copyright (c) 2012 Ecma International.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es5id: 15.2.3.6-4-313-1
6 description: >
7     Object.defineProperty - 'O' is an Arguments object of a function
8     that has formal parameters, 'P' is own property, and 'desc' is
9     data descriptor, test 'P' is defined in 'O' with all correct
10     attribute values (10.6 [[DefineOwnProperty]] step 3)
11 includes: [propertyHelper.js]
12 ---*/
14 (function(a, b, c) {
15   Object.defineProperty(arguments, "genericProperty", {
16     value: 1001,
17     writable: true,
18     enumerable: true,
19     configurable: true
20   });
22   verifyProperty(arguments, "genericProperty", {
23     value: 1001,
24     writable: true,
25     enumerable: true,
26     configurable: true,
27   });
28 }(1, 2, 3));
30 reportCompare(0, 0);