Skip to content

Commit

Permalink
Update test/built-ins/Function/prototype/arguments/prop-desc.js
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Gibson <[email protected]>
  • Loading branch information
jdorfman and gibson042 authored Jan 13, 2025
1 parent 9875dd4 commit 8ec9d7c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/built-ins/Function/prototype/arguments/prop-desc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// Copyright (C) 2024 Justin Dorfman. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-function.prototype.arguments
esid: sec-addrestrictedfunctionproperties
description: >
Function.prototype.arguments property descriptor
info: |
Function.prototype.arguments is an accessor property whose set and get
accessor functions are both %ThrowTypeError%.
functions are both %ThrowTypeError%.
info: |
2. Let _thrower_ be _realm_.[[Intrinsics]].[[%ThrowTypeError%]].
3. Perform ! DefinePropertyOrThrow(_F_, *"caller"*, PropertyDescriptor { [[Get]]: _thrower_, [[Set]]: _thrower_, [[Enumerable]]: *false*, [[Configurable]]: *true* }).
4. Perform ! DefinePropertyOrThrow(_F_, *"arguments"*, PropertyDescriptor { [[Get]]: _thrower_, [[Set]]: _thrower_, [[Enumerable]]: *false*, [[Configurable]]: *true* }).
includes: [propertyHelper.js]
---*/

Expand Down

0 comments on commit 8ec9d7c

Please sign in to comment.