Source code
Revision control
Copy as Markdown
Other Tools
// Copyright (C) 2017 Caio Lima. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Mapped arguments object with non-configurable property property descriptor behavior
info: |
Descriptor of a mapped value is updated when property is made non-configurable.
flags: [noStrict]
esid: sec-arguments-exotic-objects-defineownproperty-p-desc
includes: [propertyHelper.js]
---*/
function argumentsNonConfigurable(a) {
Object.defineProperty(arguments, "0", {configurable: false});
verifyProperty(arguments, "0", {
value: 1,
writable: true,
enumerable: true,
configurable: false,
});
}
argumentsNonConfigurable(1);
reportCompare(0, 0);