]> Lady’s Gitweb - Pisces/commit
De‐classify property descriptors; move to value.js
authorLady <redacted>
Fri, 24 Nov 2023 16:37:08 +0000 (11:37 -0500)
committerLady <redacted>
Fri, 24 Nov 2023 17:35:03 +0000 (12:35 -0500)
commit50ab30fc3a257e46da6b8bdc0dad054f729e16e1
tree5464f7c3422d971f489a7480a5fc76c3acbb1abb
parente59e8454940d56a20e22c8eb5154ca542e478a0a
De‐classify property descriptors; move to value.js

The conversion to and from property descriptors doesn’t only look at
own properties, so it is convenient to create ones with a null
prototype (to prevent attempts at hacking into, e·g,
`Object.prototype`). This means the existing class‐based approach
isn’t viable and a more functional approach is better.

Many of the property descriptor functions explicitly handle undefined,
so treating them as values and not objects makes sense, even if some
(`completePropertyDescriptor`, `toPropertyDescriptor`) throw if their
argument is not an object.
dev-deps.js
object.js
object.test.js
value.js
value.test.js
This page took 0.061037 seconds and 4 git commands to generate.