|
1 | 1 | import * as util from '../util'; |
2 | 2 | import {Expression, type ExpressionResult, Literal} from '../codegen-steps'; |
3 | | -import {$$deepEqual} from '@jsonjoy.com/util/lib/json-equal/$$deepEqual'; |
| 3 | +import {deepEqualCodegen} from '@jsonjoy.com/util/lib/json-equal/deepEqualCodegen'; |
4 | 4 | import type * as types from '../types'; |
5 | 5 | import type {Vars} from '../Vars'; |
6 | 6 |
|
@@ -172,7 +172,7 @@ export const arrayOperators: types.OperatorDefinition<any>[] = [ |
172 | 172 | const arr = ctx.operands[0]; |
173 | 173 | const val = ctx.operands[1]; |
174 | 174 | if (val instanceof Literal) { |
175 | | - const fnJs = $$deepEqual(val.val); |
| 175 | + const fnJs = deepEqualCodegen(val.val); |
176 | 176 | const d = ctx.const(fnJs); |
177 | 177 | ctx.link(util.isInArr2, 'isInArr2'); |
178 | 178 | const js = `isInArr2((${ctx.operands[0]}),${d})`; |
@@ -211,7 +211,7 @@ export const arrayOperators: types.OperatorDefinition<any>[] = [ |
211 | 211 | (ctx: types.OperatorCodegenCtx<types.ExprIndexOf>): ExpressionResult => { |
212 | 212 | const val = ctx.operands[1]; |
213 | 213 | if (val instanceof Literal) { |
214 | | - const fnJs = $$deepEqual(val.val); |
| 214 | + const fnJs = deepEqualCodegen(val.val); |
215 | 215 | const d = ctx.const(fnJs); |
216 | 216 | ctx.link(util.indexOf2, 'indexOf2'); |
217 | 217 | const js = `indexOf2((${ctx.operands[0]}),${d})`; |
|
0 commit comments