mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 13:21:55 +00:00
build: Internal method linking - plan and basic script
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
## Internal methods
|
||||
|
||||
Examples of Internal methods not being connected -
|
||||
|
||||
1. `[[DefineOwnProperty]]` -
|
||||
|
||||
* /abstract-operations.html#sec-createdataproperty - `7.3.5 CreateDataProperty` - uses generic `O.[[DefineOwnProperty]]`
|
||||
* /ordinary-and-exotic-objects-behaviours.html#sec-array-exotic-objects-defineownproperty-p-desc - `10.4.2.1 [[DefineOwnProperty]]` -Array has custom `[[DefineOwnProperty]]`.
|
||||
* /ordinary-and-exotic-objects-behaviours.html#sec-ordinary-object-internal-methods-and-internal-slots-defineownproperty-p-desc - `10.1.6 [[DefineOwnProperty]]` - Ordinary definition
|
||||
|
||||
2. `[[GetOwnProperty]]` - Similar, defined for proxies
|
||||
|
||||
|
||||
Written in html as (both consumer + definition) -
|
||||
|
||||
<var class="field">[[DefineOwnProperty]]</var>
|
||||
|
||||
How it works internally for references -
|
||||
|
||||
ecmarkup.js - `showReferencesFor(entry)` - uses `entry.referencingIds` from biblio.
|
||||
|
||||
|
||||
Abstract methods list -
|
||||
|
||||
File: /ecmascript-data-types-and-values.html#table-essential-internal-methods
|
||||
|
||||
[[GetPrototypeOf]]
|
||||
[[SetPrototypeOf]]
|
||||
[[IsExtensible]]
|
||||
[[PreventExtensions]]
|
||||
[[GetOwnProperty]]
|
||||
[[DefineOwnProperty]]
|
||||
[[HasProperty]]
|
||||
[[Get]]
|
||||
[[Set]]
|
||||
[[Delete]]
|
||||
[[OwnPropertyKeys]]
|
||||
|
||||
File: /ecmascript-data-types-and-values.html#table-additional-essential-internal-methods-of-function-objects
|
||||
[[Call]]
|
||||
[[Construct]]
|
||||
|
||||
*Connect these to the implementations*
|
||||
|
||||
Regex to search all -
|
||||
```
|
||||
\[\[GetPrototypeOf\]\]|\[\[SetPrototypeOf\]\]|\[\[IsExtensible\]\]|\[\[PreventExtensions\]\]|\[\[GetOwnProperty\]\]|\[\[DefineOwnProperty\]\]|\[\[HasProperty\]\]|\[\[Get\]\]|\[\[Set\]\]|\[\[Delete\]\]|\[\[OwnPropertyKeys\]\]|\[\[Call\]\]|\[\[Construct\]\]
|
||||
```
|
||||
|
||||
Problems -
|
||||
1. `[[Get]]`, `[[Set]]` - are also used as Property Attributes (/ecmascript-data-types-and-values.html#sec-property-attributes). Distinguish them.
|
||||
2. Mark all Property Attributes.
|
||||
|
||||
Reference in New Issue
Block a user