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

Commit 1e85c36

Browse files
committed
Update README.md
1 parent e832905 commit 1e85c36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ class MyClass {
160160
Static property declarations are fairly straightforward in terms of semantics compared to their instance-property counter-parts. When a class definition is evaluated, the following set of operations is executed:
161161

162162
1. Let _F_ be the class object being defined.
163-
2. Let _fieldName_ be the result of executing [PropName](http://www.ecma-international.org/ecma-262/6.0/index.html#sec-object-initializer-static-semantics-propname) of the _PropertyName_ of the static property declaration
163+
2. Let _propName_ be the result of executing [PropName](http://www.ecma-international.org/ecma-262/6.0/index.html#sec-object-initializer-static-semantics-propname) of the _PropertyName_ of the static property declaration
164164
3. If an initializer expression is present
165165
1. Let _initializerValue_ be the result of evaluating the initializer expression.
166166
4. Else,
167-
1. Let _initializerValue_ be the result of \[\[Get]](_fieldName_, _F_)
167+
1. Let _initializerValue_ be the result of \[\[Get]](_propName_, _F_)
168168
5. Let _propertyDescriptor_ be PropertyDescriptor{\[\[Value]]: _initializerValue_, \[\[Writable]]: true, \[\[Enumerable]]: true, \[\[Configurable]]: true}.
169-
6. Call _F_.\[\[DefineOwnProperty]](_fieldName_, _propertyDescriptor_).
169+
6. Call _F_.\[\[DefineOwnProperty]](_propName_, _propertyDescriptor_).
170170

171171
### Why?
172172

0 commit comments

Comments
 (0)