Closed WebReflection closed 12 months ago
Helping myself to deal with required changes as investigation goes on:
type
can be "function"
but the value is not necessarily a function, rather an id)Array.isArray
drilling of the specs[type, value]
for arrays should likely remain, but it must provide a length
attribute too, or return just the list of own properties but if there's any symbil involved we're doomed ... although that'd be acceptable ... so there is a case when proxy traps returns only primitives (valid ones) and the rest of the logic should followThings to do next:
wrap
from proxy-target
to return an entry insteadwrap
returns an Array, be sure the values are normalized
This MR does the following:
[type, value]
operation in favor of proxy-target/array utilityisArray
as remote and local arrays are always reflected via proxyARRAY
for the ownKeys trapReflect.deleteProperty
ondelete
operation