dsl.js: Reuse sym() in RuleBuilder
This commit is contained in:
parent
5ecdfce122
commit
a331607f4e
1 changed files with 1 additions and 4 deletions
|
|
@ -199,10 +199,7 @@ function normalize(value) {
|
|||
function RuleBuilder(ruleMap) {
|
||||
return new Proxy({}, {
|
||||
get(target, propertyName) {
|
||||
const symbol = {
|
||||
type: 'SYMBOL',
|
||||
name: propertyName
|
||||
};
|
||||
const symbol = sym(propertyName);
|
||||
|
||||
if (!ruleMap || ruleMap.hasOwnProperty(propertyName)) {
|
||||
return symbol;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue