mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 13:21:55 +00:00
1.8 KiB
1.8 KiB
Internal methods
Examples of Internal methods not being connected -
[[DefineOwnProperty]]-
- /abstract-operations.html#sec-createdataproperty -
7.3.5 CreateDataProperty- uses genericO.[[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
[[GetOwnProperty]]- Similar, defined for proxies
Written in html as (both consumer + definition) -
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 -
[[Get]],[[Set]]- are also used as Property Attributes (/ecmascript-data-types-and-values.html#sec-property-attributes). Distinguish them.- Mark all Property Attributes.