Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
spec: CreateNonEnumerableDataProperty with [[DefineOwnProperty]]
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Mar 3, 2021
1 parent 6ae7217 commit 79f07b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"license": "MIT",
"devDependencies": {
"ecmarkup": "^4.0.0"
"ecmarkup": "^7.0.0"
}
}
7 changes: 4 additions & 3 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ contributors: Chengzhong Wu, Hemanth HM, Ecma International

<emu-clause id="sec-createnonenumerabledataproperty">
<h1><ins>CreateNonEnumerableDataProperty ( _O_, _P_, _V_ )</ins></h1>
<p><ins>The abstract operation CreateNonEnumerableDataProperty takes arguments _O_ (an Object), _P_ (a property key), and _V_ (an ECMAScript language value). It performs the following steps when called:</ins></p>
<p><ins>The abstract operation CreateNonEnumerableDataProperty takes arguments _O_ (an Object), _P_ (a property key), and _V_ (an ECMAScript language value). It is used to create a new non-enumerable own property of an object. It performs the following steps when called:</ins></p>
<emu-alg>
1. <ins>Assert: Type(_O_) is Object.</ins>
1. <ins>Assert: IsPropertyKey(_P_) is true.</ins>
1. <ins>Assert: IsPropertyKey(_P_) is *true*.</ins>
1. <ins>Let _newDesc_ be the PropertyDescriptor { [[Value]]: _V_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.</ins>
1. <ins>Return ? DefinePropertyOrThrow(_O_, _P_, _newDesc_).</ins>
1. <ins>Return ? ? _O_.[[DefineOwnProperty]](_P_, _newDesc_).</ins>
</emu-alg>
</emu-clause>
<emu-note>This abstract operation creates a property whose attributes are set to the same defaults used for properties created by the ECMAScript language assignment operator except they are not enumerable. Normally, the property will not already exist. If it does exist and is not configurable or if _O_ is not extensible, [[DefineOwnProperty]] will return *false*.</emu-note>
</emu-clause>
</emu-clause>

Expand Down

0 comments on commit 79f07b7

Please sign in to comment.