Open StarHosea opened 1 year ago
hermes will not support with operator which used in json-schema expression compiler . hermes language feature excluded from support
with
json-schema
replace compiler with operator like this
const Registry = { silent: false, compile(expression: string, scope = {}) { // insert $root before expression vars expression = expression.replaceAll(/(\$\w+)/g, '$root.$1'); if (Registry.silent) { try { return new Function('$root', ` return (${expression}); `)( scope ) } catch {} } else { return new Function('$root', `return (${expression}); `)( scope ) } }, }
another change should be the custom scope,
希望赶快修复吧,我们也是有这个问题
同上,升级rn到 0.70后默认开启Hermes引擎,不再支持【with】操作符,导致formily无法工作
What problem does this feature solve?
hermes will not support
with
operator which used injson-schema
expression compiler . hermes language feature excluded from supportWhat does the proposed API look like?
replace compiler
with
operator like thisanother change should be the custom scope,