Add property access function

pull/293/head
Anton Medvedev 5 months ago
parent 19520743f7
commit cc0049466a
No known key found for this signature in database

@ -46,6 +46,14 @@ void async function main() {
const skip = Symbol('skip')
const wrap = fn => new Proxy(fn, {
get(_, prop) {
return wrap(x => fn(x)?.[prop])
},
})
const _ = wrap(x => x)
async function runTransforms(json, args, theme) {
const process = await import('node:process')
let i, code, jsCode, output = json

Loading…
Cancel
Save