Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperties / 15.2.3.7-5-b-161.js
blob1b952cf469b6ba241381e42195afb8ad106ef158
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.7-5-b-161
6 description: >
7     Object.defineProperties - 'descObj' is the Arguments object which
8     implements its own [[Get]] method to get 'writable' property
9     (8.10.5 step 6.a)
10 includes: [propertyHelper.js]
11 ---*/
13 var obj = {};
15 var func = function(a, b) {
16   arguments.writable = false;
18   Object.defineProperties(obj, {
19     property: arguments
20   });
22   assert(obj.hasOwnProperty("property"));
23   verifyNotWritable(obj, "property");
26 func();
28 reportCompare(0, 0);